Skip to content

Bump manifests to v0.10.0 and purl to v0.1.19 - #339

Merged
andrew merged 4 commits into
mainfrom
bump-purl-v0.1.19
Aug 28, 2026
Merged

andrew merged 4 commits into
mainfrom
bump-purl-v0.1.19

Conversation

@andrew

@andrew andrew commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Updates github.com/git-pkgs/manifests from v0.8.0 to v0.10.1 and github.com/git-pkgs/purl from v0.1.16 to v0.1.19.

The manifests update adds source-level declarations, newer lockfile integrity parsing, and Swift source-control coordinates. The purl update normalizes constructed PURLs, rejects Swift registry identities that cannot be represented as pkg:swift, and uses the current version-range minimum API.

Guards both purl.MakePURL call sites in vulnerability commands. Batch scans report unrepresentable package identities separately from unsupported OSV ecosystems and include the package name. Vulnerability history returns a clear error for an unrepresentable identity.

Supersedes #334 and #336.

andrew added 3 commits August 27, 2026 16:55
MakePURL returns nil for Swift registry identities since purl v0.1.17,
so guard both call sites in cmd/vulns.go and skip those dependencies.
Update Swift test fixtures to use source-URL coordinates.
@andrew andrew changed the title Bump github.com/git-pkgs/purl to v0.1.19 Bump manifests to v0.10.0 and purl to v0.1.19 Aug 28, 2026
@andrew
andrew requested a lite review from Copilot August 28, 2026 10:36

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 module dependencies to newer manifests and purl releases, and adjusts vulnerability-related commands to handle dependencies whose identities cannot be represented as PURLs.

Changes:

  • Bump github.com/git-pkgs/manifests to v0.10.0 and github.com/git-pkgs/purl to v0.1.19 (plus related indirect bumps).
  • Guard purl.MakePURL call sites to avoid nil dereferences and to return a clearer error in vulns history.
  • Expand tests to cover Swift identity cases (including an unrepresentable Swift registry identity).

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
go.mod Bumps manifests, purl, and related indirect dependencies.
go.sum Updates sums to match the dependency bumps.
cmd/vulns.go Adds nil handling for purl.MakePURL in OSV query construction and vulns history.
cmd/vulns_test.go Updates/extends OSV query tests for Swift identity behavior and skipped deps.
cmd/vulns_history_test.go Adds regression test for vulns history rejecting unrepresentable Swift identities.

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

Comment thread cmd/vulns.go Resolved
Bump manifests to v0.10.1 so Swift source-control pins retain source coordinates. Report registry identities separately from unsupported OSV ecosystems and include package names in the diagnostic.
@andrew
andrew merged commit d386cbc into main Aug 28, 2026
7 checks passed
@andrew
andrew deleted the bump-purl-v0.1.19 branch August 28, 2026 16:16
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.

2 participants