mirror of
https://github.com/compose-spec/compose-go.git
synced 2026-11-24 20:00:00 +00:00
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
|
History
|
|
|---|---|---|
| .. | ||
| env-file | ||
| label-file | ||
| simple | ||
| UNNORMALIZED PATH | ||