Skip to content

Bump github.com/git-pkgs/purl to v0.1.17 - #273

Merged
andrew merged 1 commit into
mainfrom
bump/purl-v0.1.17
Aug 17, 2026
Merged

Bump github.com/git-pkgs/purl to v0.1.17#273
andrew merged 1 commit into
mainfrom
bump/purl-v0.1.17

Conversation

@andrew

@andrew andrew commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

MakePURL/MakePURLString/New now apply the same per-type normalization as Parse (git-pkgs/purl#30), so canonicalPackagePURL no longer needs its own Normalize call and DB writes/lookups produce canonical keys.

Existing rows written under a non-canonical purl (mixed-case pypi, composer, etc) become cache misses on lookup and re-populate under the canonical key on the next fetch; the old rows are left in place rather than migrated.

Closes #207

MakePURL/MakePURLString/New now apply the same per-type normalization as
Parse (git-pkgs/purl#30), so canonicalPackagePURL no longer needs its own
Normalize call and DB writes/lookups produce canonical keys.

Existing rows written under a non-canonical purl (mixed-case pypi,
composer, etc) become cache misses on lookup and re-populate under the
canonical key on the next fetch; the old rows are left in place.

Closes #207

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.

Pull request overview

Updates the github.com/git-pkgs/purl dependency to pick up new per-type normalization behavior and simplifies local PURL canonicalization so cache keys/lookup keys align with the library’s canonical form.

Changes:

  • Bump github.com/git-pkgs/purl from v0.1.16 to v0.1.17.
  • Simplify canonicalPackagePURL to use purl.MakePURLString(...) directly (removing the local Normalize() call).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
internal/handler/handler.go Removes the explicit Normalize() call in canonicalPackagePURL, relying on MakePURLString for canonicalization.
go.mod Updates github.com/git-pkgs/purl requirement to v0.1.17.
go.sum Updates checksums for github.com/git-pkgs/purl v0.1.17.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/handler/handler.go
@andrew
andrew merged commit 12ad4ec into main Aug 17, 2026
9 checks passed
@andrew
andrew deleted the bump/purl-v0.1.17 branch August 17, 2026 07:36
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.

Package/version DB rows are keyed by non-canonical PURL

2 participants