compose/pkg
Nicolas De Loof d764fee527 fix(reconcile): retry network create on conflict, keep owned config-hash
Address review findings on the network reconcile migration:

- createNetwork now treats a NetworkCreate conflict as success. A
  concurrent `docker compose up|run` can create the same network in the
  TOCTOU window between the observed-state snapshot and the create call;
  the previous ensureNetwork retried on conflict, the plain create must
  not fail hard.

- discoverUnmanagedNetworks/Volumes preserve the config-hash when the live
  resource is owned by this project (project label present, key label
  absent — e.g. written by an older Compose) so genuine divergence is
  still detected. For resources we don't own the hash stays empty and they
  are reused untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-07-27 14:56:25 +02:00
..
api Fix grammar in Attestations field comment 2026-07-06 10:36:46 +02:00
bridge pkg/bridge: remove uses of go-connections 2026-02-11 12:32:37 +01:00
compose fix(reconcile): retry network create on conflict, keep owned config-hash 2026-07-27 14:56:25 +02:00
dryrun chore(deps): github.com/docker/cli v29.6.0 2026-06-22 09:00:18 +02:00
e2e Tolerate missing env file on runtime commands 2026-07-27 09:20:14 +02:00
mocks chore(deps): github.com/docker/cli v29.6.0 2026-06-22 09:00:18 +02:00
remote chore: fix some comments to improve readability 2026-06-09 11:45:13 +02:00
utils fix: make e2e tests pass reliably locally with Docker Desktop 2026-05-18 10:55:41 +02:00
watch fix mixed assertion libraries in tests 2026-03-31 17:32:51 +02:00