Skip to content

Commit

Permalink
clone variable berfore we capture a pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed Aug 17, 2023
1 parent 150449b commit 62aeb85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/compose/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ func resolveAndMergeBuildArgs(
// so they're handled last
for k, v := range storeutil.GetProxyConfig(dockerCli) {
if _, ok := result[k]; !ok {
result[k] = &v
ref := v
result[k] = &ref
}
}
return result
Expand Down

0 comments on commit 62aeb85

Please sign in to comment.