Skip to content

Fix canonical container name in --dry-run#11425

Merged
ndeloof merged 1 commit intodocker:mainfrom
jhrotko:11402-fix-canonical-container-name
Jan 30, 2024
Merged

Fix canonical container name in --dry-run#11425
ndeloof merged 1 commit intodocker:mainfrom
jhrotko:11402-fix-canonical-container-name

Conversation

@jhrotko
Copy link
Copy Markdown
Contributor

@jhrotko jhrotko commented Jan 30, 2024

What I did
Fix getCanonicalContainerName to strip the prefix "/". Before, we were removing always the first char (/) but in --dry-run this is non-existent. So the fix makes sure we only remove what we intend to.

Related issue

fixes #11402

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

Copy link
Copy Markdown
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

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

✅ LGTM
(and I wonder if we're missing test coverage for --dry-run features since we didn't catch this)

@ndeloof ndeloof enabled auto-merge (rebase) January 30, 2024 14:01
@ndeloof ndeloof merged commit 0582001 into docker:main Jan 30, 2024
@milas
Copy link
Copy Markdown
Contributor

milas commented Jan 30, 2024

the puppies 😭

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] Dry run: container names in start(ing) progress entries missing first letter

5 participants