Skip to content

Commit

Permalink
validate: please vet
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Vass <tibor@docker.com>
  • Loading branch information
Tibor Vass committed Jul 16, 2018
1 parent 195919d commit 8159922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion builder/builder-next/builder.go
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions builder/dockerfile/dispatchers_test.go
Expand Up @@ -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}",
}
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 8159922

Please sign in to comment.