Repository navigation
Bump manifests to v0.10.0 and purl to v0.1.19 - #339
Merged
Merged
Conversation
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.
There was a problem hiding this comment.
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/manifeststov0.10.0andgithub.com/git-pkgs/purltov0.1.19(plus related indirect bumps). - Guard
purl.MakePURLcall sites to avoid nil dereferences and to return a clearer error invulns 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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.