Skip to content

Commit 792afb8

Browse files
authored
build: use correct values for proxy variables (docker#10908)
clone variable before we capture a pointer Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 150449b commit 792afb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/compose/build.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ func resolveAndMergeBuildArgs(
354354
// so they're handled last
355355
for k, v := range storeutil.GetProxyConfig(dockerCli) {
356356
if _, ok := result[k]; !ok {
357+
v := v
357358
result[k] = &v
358359
}
359360
}

0 commit comments

Comments
 (0)