Repository navigation
Resolve CPAN downloads by author and release - #229
Open
tejasng053 wants to merge 1 commit into
Open
tejasng053 wants to merge 1 commit into
tejasng053 wants to merge 1 commit into
Conversation
Fixes aboutcode-org#181 Signed-off-by: tejasng053 <tejasng053@gmail.com>
This branch has not been deployed
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.
What's changed?
The CPAN resolver sends the distribution and version as the two path segments of MetaCPAN's release endpoint. That endpoint expects the author and the full release name. For example,
pkg:cpan/GDT/URI-PackageURL@2.22should query/v1/release/GDT/URI-PackageURL-2.22.Use the author from the PURL namespace or
authorqualifier and preserve the case of the distribution name. Read the archive URL from the release metadata and keep the existing.tar.gzand.zipchecks under the same author's directory. The resolver returns no result for a module name or for a PURL that lacks the author or version needed for this lookup.Related issue
Fixes #181
Verification
URI-PackageURL@2.22with both author forms and forDateTime@1.55with its author namespace.ffbd683: one pub.dev test and two CocoaPods tests tracked in Some unit tests depends on external services #188.make checkandgit diff --checkpassed on Linux with Python 3.12.3.Checklist
The final checkbox remains open while upstream CI is unverified. Prepared with Codex assistance and reviewed before publication.