mirror of
https://github.com/docker/compose.git
synced 2025-07-28 16:14:06 +02:00
golang is so ridiculous with this for..loop pattern
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
a79346b978
commit
6df30f39f2
@ -243,6 +243,7 @@ func imageBuildOptions(options buildx.Options) dockertypes.ImageBuildOptions {
|
|||||||
func toMapStringStringPtr(source map[string]string) map[string]*string {
|
func toMapStringStringPtr(source map[string]string) map[string]*string {
|
||||||
dest := make(map[string]*string)
|
dest := make(map[string]*string)
|
||||||
for k, v := range source {
|
for k, v := range source {
|
||||||
|
v := v
|
||||||
dest[k] = &v
|
dest[k] = &v
|
||||||
}
|
}
|
||||||
return dest
|
return dest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user