The issue is that we're assigning the same defaultValue map for all keys.
Maps in Go are reference types. If you assign the same map to multiple keys, all keys will point to the same underlying map. Changes to one key will be reflected in all other keys.
Fix for this issue https://github.com/docker/compose/issues/11993.
The issue is that we're assigning the same
defaultValue
map for all keys.Maps in Go are reference types. If you assign the same map to multiple keys, all keys will point to the same underlying map. Changes to one key will be reflected in all other keys.