Skip to content

preserve comments in list input values with commentNoInfix#607

Merged
tonistiigi merged 2 commits intodocker:masterfrom
crazy-max:allow-comments
Mar 5, 2026
Merged

preserve comments in list input values with commentNoInfix#607
tonistiigi merged 2 commits intodocker:masterfrom
crazy-max:allow-comments

Conversation

@crazy-max
Copy link
Member

fixes #451
needs #604

Use commentNoInfix: true (follow-up docker/actions-toolkit#1005) when parsing all list-style inputs (images, tags, flavor, labels, annotations). This keeps support for full-line # comments in multiline inputs while preserving # characters inside actual values (for example mylabel=foo#bar), which currently gets truncated.

@crazy-max crazy-max changed the title Allow comments preserve comments in list input values with commentNoInfix Mar 5, 2026
@crazy-max crazy-max added this to the v6 milestone Mar 5, 2026
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max requested a review from tonistiigi March 5, 2026 16:06
@crazy-max crazy-max marked this pull request as ready for review March 5, 2026 16:06
@tonistiigi tonistiigi merged commit 030e881 into docker:master Mar 5, 2026
37 checks passed
@crazy-max crazy-max deleted the allow-comments branch March 5, 2026 16:27
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.

Adding a label containing an octothorpe (#) incorrectly results in the label being stripped

2 participants