build: use correct values for proxy variables (#10908)
clone variable before we capture a pointer Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
150449bbd2
commit
792afb8d13
@ -354,6 +354,7 @@ func resolveAndMergeBuildArgs(
|
|||||||
// so they're handled last
|
// so they're handled last
|
||||||
for k, v := range storeutil.GetProxyConfig(dockerCli) {
|
for k, v := range storeutil.GetProxyConfig(dockerCli) {
|
||||||
if _, ok := result[k]; !ok {
|
if _, ok := result[k]; !ok {
|
||||||
|
v := v
|
||||||
result[k] = &v
|
result[k] = &v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user