Do not hardcode "amd64" on LCOW and Windows-related files

Fixes #3281.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
Kazuyoshi Kato
2020-11-09 13:38:47 -08:00
parent 293b08dd19
commit bb8aac38a0
3 changed files with 7 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ import (
"io"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync"
@@ -50,7 +51,7 @@ func init() {
InitFn: func(ic *plugin.InitContext) (interface{}, error) {
ic.Meta.Platforms = append(ic.Meta.Platforms, ocispec.Platform{
OS: "linux",
Architecture: "amd64",
Architecture: runtime.GOARCH,
})
return NewSnapshotter(ic.Root)
},