compose/pkg
Milas Bowman 7aaea283ca watch: data race / segfault fixes
Was getting segfaults with multiple services using
`x-develop` and `watch` at the same time. Turns out
the Moby path matcher lazily initializes the regex
pattern internally the first time it's used, so it's
not goroutine-safe.

Change here is to not use a global instance for the
ephemeral path matcher, but a per-watcher instance.

Additionally, the data race detector caught a couple
other issues that were easy enough to fix:
 * Use the lock that's used elsewhere for convergence
   before manipulating
 * Eliminate concurrent map access when triggering
   rebuilds

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-03-22 18:05:56 -04:00
..
api Run classic builder with BuildConfig, not buildx.Options 2023-03-21 15:37:55 +01:00
compose watch: data race / segfault fixes 2023-03-22 18:05:56 -04:00
e2e Run classic builder with BuildConfig, not buildx.Options 2023-03-21 15:37:55 +01:00
mocks bump docker engine and cli version to 23.0.0 with buildkit(v0.11.2) and buildx (v0.10.2) 2023-02-08 10:11:50 +01:00
progress progress writer uses dockercli.Err stream 2023-03-15 09:47:13 +01:00
prompt use a simpler prompt implementation when we lack a terminal 2023-01-09 10:28:16 +01:00
utils detect replacement container is created and inform printer so it attach and don't stop 2023-02-06 11:23:13 +01:00
watch watch: data race / segfault fixes 2023-03-22 18:05:56 -04:00