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:
Nicolas De loof 2023-08-17 20:25:28 +02:00 committed by GitHub
parent 150449bbd2
commit 792afb8d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -354,6 +354,7 @@ func resolveAndMergeBuildArgs(
// so they're handled last
for k, v := range storeutil.GetProxyConfig(dockerCli) {
if _, ok := result[k]; !ok {
v := v
result[k] = &v
}
}