compose/pkg/api
Nicolas De Loof 7259254c76 refactor(up): settle the review of interactive up's single plan
Production:
- detached and interactive up prepare their plan the same way: prepareUp
  holds the preparation and the --wait-timeout rationale both share, so the
  two cannot diverge;
- useAPISocket leaves alone a project it already transformed. The session,
  the watcher and the teardown now work on the plan's own project, which a
  watch rebuild hands to a later plan: transforming it again mounted the
  socket and the config file twice;
- the docs say what the code does: an interruption met while reading the
  daemon's time is returned wrapping the context's error (the CLI maps it to
  its interruption exit code), Up ignores StartOptions.Project and does not
  verify StartOptions.Wait in the foreground, and the Start phase's listener
  goes through runStart.

Tests:
- the Start phase is shown to survive the caller's cancellation, and an
  interruption before it to start nothing;
- the dry-run test no longer claims to exercise the dry-run client: it pins
  the gate of Up;
- the phase order test also checks the "up" scope opens before the create;
- useAPISocket's idempotence is tested.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-10-26 16:28:51 +01:00
..
api.go refactor(up): settle the review of interactive up's single plan 2026-10-26 16:28:51 +01:00
api_test.go build(deps): adopt compose-go jobs and the container-spec layering 2026-09-21 16:35:20 +02:00
context.go Introduce abstractions to support SDK usage without requiring Docker CLI 2025-10-27 16:17:50 +01:00
env.go restore support for COMPOSE_COMPATIBILITY 2025-12-07 18:42:04 +01:00
errors.go api: reject incompatible Up options with a typed error 2026-10-26 14:49:08 +01:00
errors_test.go deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00
event.go feat: executor runs start-phase operations 2026-10-06 14:11:22 +02:00
feature.go refactor(up): inject the navigation menu instead of importing cmd/formatter 2026-10-12 10:50:38 +02:00
labels.go docs(compose): state that a relay-only endpoint also needs an interface-pinned bind 2026-10-02 12:33:26 +02:00
labels_test.go golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
up_options.go api: reject incompatible Up options with a typed error 2026-10-26 14:49:08 +01:00
up_options_test.go api: reject incompatible Up options with a typed error 2026-10-26 14:49:08 +01:00