From 792afb8d13e5d4db5e0f05d27c936c99a28a5c6d Mon Sep 17 00:00:00 2001 From: Nicolas De loof Date: Thu, 17 Aug 2023 20:25:28 +0200 Subject: [PATCH] build: use correct values for proxy variables (#10908) clone variable before we capture a pointer Signed-off-by: Nicolas De Loof --- pkg/compose/build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compose/build.go b/pkg/compose/build.go index cf2f8a363..406bb6d9c 100644 --- a/pkg/compose/build.go +++ b/pkg/compose/build.go @@ -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 } }