Fix engine to don't write architecture in values.yaml if no one provided.

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-10-30 12:07:33 +02:00
parent 0839cfd1d0
commit 4a461a0021
3 changed files with 18 additions and 20 deletions

View File

@@ -10,6 +10,7 @@ import (
"cuelang.org/go/cue"
"github.com/containerd/containerd/platforms"
specs "github.com/opencontainers/image-spec/specs-go/v1"
"go.dagger.io/dagger/cmd/dagger/cmd/common"
"go.dagger.io/dagger/cmd/dagger/logger"
"go.dagger.io/dagger/compiler"
@@ -43,7 +44,7 @@ var computeCmd = &cobra.Command{
st := &state.State{
Name: "FIXME",
Architecture: platforms.Format(platforms.DefaultSpec()),
Architecture: platforms.Format(specs.Platform{OS: "linux", Architecture: "amd64"}),
Path: args[0],
Plan: state.Plan{
Module: args[0],