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

fix: PURL for PyPI packages from 'conda list' have the correct format now #471

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

rolweber
Copy link
Contributor

@rolweber rolweber commented Dec 14, 2022

Proposed fix for #462.

When generating the purl, check for "conda" packages with pseudo channel and platform "pypi". Those are actually pip-installed packages in the conda environment. Generate a pgk:pypi purl for them.

@rolweber rolweber requested a review from a team as a code owner December 14, 2022 13:39
Signed-off-by: Roland Weber <rolweber@de.ibm.com>
@jkowalleck
Copy link
Member

Thanks for the PR, @rolweber.

will have a proper review soon.

@jkowalleck jkowalleck self-requested a review December 14, 2022 15:27
Copy link
Member

@jkowalleck jkowalleck left a comment

Choose a reason for hiding this comment

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

💯 a simple fix and decent tests.

cyclonedx_py/utils/conda.py Show resolved Hide resolved
tests/fixtures/conda-list-issue462.json Show resolved Hide resolved
@jkowalleck jkowalleck added the bug Something isn't working label Dec 15, 2022
@jkowalleck jkowalleck changed the title fix: Report PyPI Packages from 'conda list' with PyPI purl fix: PURL for PyPI packages from 'conda list' have the correct format now Dec 15, 2022
@jkowalleck jkowalleck merged commit 1573064 into CycloneDX:master Dec 15, 2022
@jkowalleck
Copy link
Member

Thank you for the fix, @rolweber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working source: conda
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants