Skip to content

fix(bridge): reject --dry-run on bridge commands - #14307

Merged
ndeloof merged 1 commit into
docker:mainfrom
glours:fix-bridge-reject-dry-run
Oct 8, 2026
Merged

ndeloof merged 1 commit into
docker:mainfrom
glours:fix-bridge-reject-dry-run

Conversation

@glours

@glours glours commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What this PR does

The bridge commands never go through the dry-run backend, so the inherited --dry-run flag was silently ignored: bridge convert still wiped and rewrote the output directory, pulled the transformer image and ran it, and bridge transformations create still wrote its destination folder.

Fail fast with an explicit error before any side effect instead of pretending to honor the flag.

Related issue

Fixes https://docker.atlassian.net/browse/DDB-749

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

The bridge commands never go through the dry-run backend, so the
inherited --dry-run flag was silently ignored: `bridge convert` still
wiped and rewrote the output directory, pulled the transformer image
and ran it, and `bridge transformations create` still wrote its
destination folder.

Fail fast with an explicit error before any side effect instead of
pretending to honor the flag.

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

@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

@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ndeloof
ndeloof merged commit 4e1cd3f into docker:main Oct 8, 2026
62 of 64 checks passed
@ndeloof
ndeloof deleted the fix-bridge-reject-dry-run branch October 8, 2026 14:49
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.

3 participants