From 6df30f39f2447c4d21168d592075aac4c9fbf9b0 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 5 Nov 2021 21:07:37 +0100 Subject: [PATCH] golang is so ridiculous with this for..loop pattern Signed-off-by: Nicolas De Loof --- pkg/compose/build_classic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compose/build_classic.go b/pkg/compose/build_classic.go index ed12ccd28..26cfdc56e 100644 --- a/pkg/compose/build_classic.go +++ b/pkg/compose/build_classic.go @@ -243,6 +243,7 @@ func imageBuildOptions(options buildx.Options) dockertypes.ImageBuildOptions { func toMapStringStringPtr(source map[string]string) map[string]*string { dest := make(map[string]*string) for k, v := range source { + v := v dest[k] = &v } return dest