From 0839cfd1d041c55f8d0cb0f521abf95e23aed9ec Mon Sep 17 00:00:00 2001 From: Tom Chauveau Date: Thu, 28 Oct 2021 16:17:00 +0200 Subject: [PATCH] Change default architecture to linux/amd64 Signed-off-by: Tom Chauveau --- state/project.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state/project.go b/state/project.go index 902a2909..4da2901d 100644 --- a/state/project.go +++ b/state/project.go @@ -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{