Skip to content

sourcepolicy: normalize parsed source identifiers - #6909

Merged
crazy-max merged 1 commit into
moby:masterfrom
tonistiigi:source-policy-normalize
Jul 22, 2026
Merged

sourcepolicy: normalize parsed source identifiers#6909
crazy-max merged 1 commit into
moby:masterfrom
tonistiigi:source-policy-normalize

Conversation

@tonistiigi

Copy link
Copy Markdown
Member

Render parsed source identifiers back to their canonical SourceOp form before source policy evaluation. This lets Git subdir cleanup use the existing source parser and avoids policy-specific Git parsing.

Add String methods for source identifiers and cover them with unit tests, plus a client integration regression for canonical Git subdir policy matching.

Originally reported by JUNYI LIU

@cpuguy83

Render parsed source identifiers back to their canonical SourceOp form before
source policy evaluation. This lets Git subdir cleanup use the existing source
parser and avoids policy-specific Git parsing.

Add String methods for source identifiers and cover them with unit tests, plus
a client integration regression for canonical Git subdir policy matching.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@crazy-max
crazy-max force-pushed the source-policy-normalize branch from e91f4e7 to 93999f4 Compare July 22, 2026 09:42
@crazy-max

Copy link
Copy Markdown
Member

rebased to fix conflicts

@crazy-max
crazy-max merged commit c51cc1b into moby:master Jul 22, 2026
192 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants