Change default architecture to linux/amd64

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau 2021-10-28 16:17:00 +02:00
parent 8a3a3028fb
commit 0839cfd1d0
No known key found for this signature in database
GPG Key ID: 3C9847D981AAC1BF

View File

@ -11,6 +11,7 @@ import (
"strings"
"github.com/containerd/containerd/platforms"
specs "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/rs/zerolog/log"
"go.dagger.io/dagger/keychain"
"go.dagger.io/dagger/stdlib"
@ -263,7 +264,7 @@ func (w *Project) Create(ctx context.Context, name string, plan Plan, arch strin
manifestPath := path.Join(envPath, manifestFile)
if arch == "" {
arch = platforms.Format(platforms.DefaultSpec())
arch = platforms.Format(specs.Platform{OS: "linux", Architecture: "amd64"})
}
st := &State{