Browse code

validate: please vet

Signed-off-by: Tibor Vass <tibor@docker.com>

Tibor Vass authored on 2018/07/12 08:52:03
Showing 2 changed files
... ...
@@ -237,7 +237,7 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder.
237 237
 		Session:       opt.Options.SessionID,
238 238
 	}
239 239
 
240
-	aux := streamformatter.AuxFormatter{opt.ProgressWriter.Output}
240
+	aux := streamformatter.AuxFormatter{Writer: opt.ProgressWriter.Output}
241 241
 
242 242
 	eg, ctx := errgroup.WithContext(ctx)
243 243
 
... ...
@@ -137,10 +137,10 @@ func TestFromWithArg(t *testing.T) {
137 137
 	args := NewBuildArgs(make(map[string]*string))
138 138
 
139 139
 	val := "sometag"
140
-	metaArg := instructions.ArgCommand{
140
+	metaArg := instructions.ArgCommand{KeyValuePairOptional: instructions.KeyValuePairOptional{
141 141
 		Key:   "THETAG",
142 142
 		Value: &val,
143
-	}
143
+	}}
144 144
 	cmd := &instructions.Stage{
145 145
 		BaseName: "alpine:${THETAG}",
146 146
 	}
... ...
@@ -377,7 +377,7 @@ func TestArg(t *testing.T) {
377 377
 
378 378
 	argName := "foo"
379 379
 	argVal := "bar"
380
-	cmd := &instructions.ArgCommand{Key: argName, Value: &argVal}
380
+	cmd := &instructions.ArgCommand{KeyValuePairOptional: instructions.KeyValuePairOptional{Key: argName, Value: &argVal}}
381 381
 	err := dispatch(sb, cmd)
382 382
 	assert.NilError(t, err)
383 383