compose-go/cli/testdata
Guillaume Lours a3e1b4baaf Add SkipResolveLabels option to skip label_file resolution
docker/compose loads the full project just to resolve the project name
for runtime commands (exec, ps, logs, ...) and uses
WithoutEnvironmentResolution so a missing env_file on an unrelated
service does not abort them. label_file resolution had no equivalent
opt-out: WithServicesLabelsResolved ran unconditionally and failed on
any missing file (label_file variant of docker/compose#13601).

Gate it behind loader.Options.SkipResolveLabels and expose
cli.WithoutLabelsResolution.

Also stop discarding label_file entries when WithDiscardEnvFiles is
set: since 56297d8 the loader passed the env_file discard flag into
label resolution, silently dropping label_file entries too. Discard is
only meant for env_file.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
History 2026-07-29 12:21:48 +02:00
..
env-file Revert "run interpolation after merge, but for required attributes" 2024-07-23 15:26:30 +02:00
label-file Add SkipResolveLabels option to skip label_file resolution 2026-07-29 12:21:48 +02:00
simple interpolate name set in yaml file 2023-01-17 10:11:24 +01:00
UNNORMALIZED PATH loader: fix overly aggressive project name validation 2023-03-26 08:48:04 -04:00