compose/pkg
Edward Muller 73ebbffb08 Don't share the options map
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.

Signed-off-by: Edward Muller <emuller@fastly.com>
2023-01-09 12:01:57 +01:00
..
api introduce `--ignore-buildable` to ignore buildable images on pull 2023-01-03 18:43:23 +01:00
compose Don't share the options map 2023-01-09 12:01:57 +01:00
e2e add support of privileged attribut in service.build section 2022-12-23 09:32:48 +01:00
mocks distinguish stdout and stderr in `up` logs 2022-12-13 14:42:42 +01:00
progress pull: improve output for services with both image+build (#9829) 2022-09-13 14:38:13 +01:00
prompt use a simpler prompt implementation when we lack a terminal 2023-01-09 10:28:16 +01:00
utils use a simpler prompt implementation when we lack a terminal 2023-01-09 10:28:16 +01:00