Skip to content

sourcepolicy: normalize parsed source identifiers#6909

Open
tonistiigi wants to merge 1 commit into
moby:masterfrom
tonistiigi:source-policy-normalize
Open

sourcepolicy: normalize parsed source identifiers#6909
tonistiigi wants to merge 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>
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.

2 participants