diff --git a/builder/builder-next/builder.go b/builder/builder-next/builder.go index b1d31a5225..dacec0af67 100644 --- a/builder/builder-next/builder.go +++ b/builder/builder-next/builder.go @@ -237,7 +237,7 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder. Session: opt.Options.SessionID, } - aux := streamformatter.AuxFormatter{opt.ProgressWriter.Output} + aux := streamformatter.AuxFormatter{Writer: opt.ProgressWriter.Output} eg, ctx := errgroup.WithContext(ctx) diff --git a/builder/dockerfile/dispatchers_test.go b/builder/dockerfile/dispatchers_test.go index efa3a1f47e..673862f2ee 100644 --- a/builder/dockerfile/dispatchers_test.go +++ b/builder/dockerfile/dispatchers_test.go @@ -137,10 +137,10 @@ func TestFromWithArg(t *testing.T) { args := NewBuildArgs(make(map[string]*string)) val := "sometag" - metaArg := instructions.ArgCommand{ + metaArg := instructions.ArgCommand{KeyValuePairOptional: instructions.KeyValuePairOptional{ Key: "THETAG", Value: &val, - } + }} cmd := &instructions.Stage{ BaseName: "alpine:${THETAG}", } @@ -377,7 +377,7 @@ func TestArg(t *testing.T) { argName := "foo" argVal := "bar" - cmd := &instructions.ArgCommand{Key: argName, Value: &argVal} + cmd := &instructions.ArgCommand{KeyValuePairOptional: instructions.KeyValuePairOptional{Key: argName, Value: &argVal}} err := dispatch(sb, cmd) assert.NilError(t, err)