Skip to content

fix(config): apply config flags to --services/--volumes/--networks/--models/--hash - #13979

Open
glours wants to merge 1 commit into
docker:mainfrom
glours:fix/13974-config-subflags-project-options
Open

fix(config): apply config flags to --services/--volumes/--networks/--models/--hash#13979
glours wants to merge 1 commit into
docker:mainfrom
glours:fix/13974-config-subflags-project-options

Conversation

@glours

@glours glours commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What I did
The runServices, runVolumes, runNetworks, runModels and runHash paths called ProjectOptions.ToProject directly, bypassing the configOptions wrapper that applies --no-consistency, --no-interpolate, --no-normalize, --no-path-resolution, --profile filtering and env_file discarding. Restore the variadic wrapper (mirroring configOptions.ToModel) and route the five call sites through it.

Regression introduced by b80bb05 (LoadProject API migration).

Related issue

Fixes #13974

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

…models/--hash

The runServices, runVolumes, runNetworks, runModels and runHash paths
called ProjectOptions.ToProject directly, bypassing the configOptions
wrapper that applies --no-consistency, --no-interpolate, --no-normalize,
--no-path-resolution, --profile filtering and env_file discarding.
Restore the variadic wrapper (mirroring configOptions.ToModel) and route
the five call sites through it.

Regression introduced by b80bb05 (LoadProject API migration).

Fixes docker#13974

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
@glours
glours requested review from a team as code owners July 28, 2026 13:02
@glours
glours requested a review from ndeloof July 28, 2026 13:02

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

The fix is correct and well-scoped. The new toProject variadic wrapper properly threads the configOptions flags (--no-consistency, --no-interpolate, --no-normalize, --no-path-resolution, profile filtering, env_file discarding) through to all five affected subcommand paths (runServices, runVolumes, runNetworks, runModels, runHash). The approach mirrors the existing configOptions.ToModel pattern, is consistent with the surrounding code, and the regression is fully covered by the new e2e test.

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] docker compose config --no-consistency no longer working as expected

2 participants