Skip to content

Preserve Swift and Go compatibility when upgrading PURL - #642

Merged
andrew merged 2 commits into
mainfrom
fix/swift-purl-compatibility
Oct 31, 2026
Merged

andrew merged 2 commits into
mainfrom
fix/swift-purl-compatibility

Conversation

@andrew

@andrew andrew commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Upgrade git-pkgs/purl to v0.2.1 and git-pkgs/registries to v0.13.0 while preserving existing Go retention, denylist and exact cooldown rule matching. Go module names in these policies remain case-insensitive, including cooldown exemptions.

Reuse Go archives stored under lowercased PURL keys when the recorded upstream path identifies the exact requested module. Move the artifact record to the case-preserving key on cache access, retaining its stored bytes and access history. Records with an unknown or different module origin are fetched again.

Keep Swift registry cache keys under pkg:generic/swift-registry/{scope}.{name}. Use enrichment v0.7.5 to reject unsupported Swift registry vulnerability lookups: vulnerability and version-enrichment APIs return HTTP 400 with BAD_REQUEST.

Related to #613. Source-coordinate Swift policy support remains separate.

@andrew andrew added the breaking Changes behaviour users rely on; needs a minor release label Oct 30, 2026
Copilot AI balanced review requested due to automatic review settings October 30, 2026 14:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew andrew changed the title Handle Swift registry identities in cache and vulnerability APIs Preserve Swift and Go compatibility when upgrading PURL Oct 30, 2026
simonchrz added a commit to simonchrz/proxy that referenced this pull request Oct 30, 2026
@andrew
andrew merged commit 3eadb3e into main Oct 31, 2026
11 checks passed
@andrew
andrew deleted the fix/swift-purl-compatibility branch October 31, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Changes behaviour users rely on; needs a minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ Proxy