Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom maven repository URLs #164

Merged
merged 2 commits into from
Aug 8, 2023
Merged

Conversation

AyanSinhaMahapatra
Copy link
Member

Adds support for getting packages from custom repository URLs, in the case of maven packages.
Example purl with repository_url as a qualifier: pkg:maven/org.eclipse.core/runtime@20070801?repository_url=https://packages.atlassian.com/mvn/maven-atlassian-external/

Adds support for getting packages from custom repository URLs,
in the case of maven packages.

Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Copy link
Member

@JonoYang JonoYang left a comment

Choose a reason for hiding this comment

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

@AyanSinhaMahapatra Looks good! Can you create another test like https://github.com/nexB/purldb/blob/main/minecode/tests/test_maven.py#L718, but you pass in a purl with a repository_url qualifier and check to see if the created package has the right URLs?

Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@AyanSinhaMahapatra
Copy link
Member Author

@JonoYang I've added a test for this, please review if this works. Thanks!

Copy link
Member

@JonoYang JonoYang left a comment

Choose a reason for hiding this comment

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

@AyanSinhaMahapatra LGTM! Thanks!

@JonoYang JonoYang merged commit cd5a1c5 into main Aug 8, 2023
8 checks passed
@JonoYang JonoYang deleted the support-custom-repo-url branch August 8, 2023 18:27
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