compose/pkg
horus 1baa4f4489 up: fix write/close race condition in logPrinter
The code used an atomic bool to guard channel writes. However, this
failed to synchronize with the call to close(), causing a panic.

Fix the race condition by using a mutex to guard the update to the
bool `stopped` and subsequent channel writes. This ensures atomic
execution of both updates to `stopped` and channel writes, preventing
races between writes and close().

Signed-off-by: horus <horus.li@gmail.com>
2023-12-20 15:45:12 +01:00
..
api avoid use of service.Name when iterating on project.Services 2023-12-05 18:54:31 +01:00
compose up: fix write/close race condition in logPrinter 2023-12-20 15:45:12 +01:00
e2e avoid use of service.Name when iterating on project.Services 2023-12-05 18:54:31 +01:00
mocks deps: update docker/cli to fix go version selection issue 2023-12-19 14:15:16 +00:00
progress progress: minor correctness fixes (#10871) 2023-08-03 15:14:17 -04:00
prompt github.com/golang/mock is deprecated 2023-12-13 14:47:39 +01:00
remote adopt compose-go/v2 2023-12-05 18:54:31 +01:00
utils logs: fix for missing output on container exit (#10925) 2023-08-23 08:57:18 -04:00
watch deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00