Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Without this I get an exception when building multiple images in a compose run. ``` fatal error: concurrent map writes goroutine 16 [running]: github.com/docker/compose/v2/pkg/compose.(*composeService).build.func1({0x2cba4e0, 0xc00019b2c0}, {0xc000233150?, 0xd?}) github.com/docker/compose/v2/pkg/compose/build.go:95 +0x652 github.com/docker/compose/v2/pkg/compose.(*graphTraversal).run.func1() github.com/docker/compose/v2/pkg/compose/dependencies.go:127 +0x63 golang.org/x/sync/errgroup.(*Group).Go.func1() golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x64 created by golang.org/x/sync/errgroup.(*Group).Go golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa5 ... ``` I'm not sure why the map is currently shared, but with this patch applied my docker-compose build run works.
- Loading branch information