You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]fix: license doubles & feat:SPDX license detection[/-][+]fix: license doubles & feat: SPDX license ID instead of named licenses[/+]on Aug 31, 2023
Cleaning the license doubles will not happen, sorry. some of the information is sourced from a free text where package authors may write whatever they want.
The SPDX ids are mapped correctly now, thanks to #576.
The SPDX expressions are detected correctly now, thanks to #578
Activity
jkowalleck commentedon Aug 30, 2023
The requested features should be fixed in the release of the upcoming version 4 of this tool.
andife commentedon Aug 30, 2023
Hi, I wonder how that works?
I checked out the branch https://github.com/CycloneDX/cyclonedx-python/tree/dev/4.x.x and installed it with pip install -e . A build of sbom with version 4 with the option "-e" still gives me the exact number of corresponding multiple entries (does not matter the version).
The packages are for example: tqdm, toml, scipy, prometheus-client, opencv-python, PyYAML
jkowalleck commentedon Aug 30, 2023
thank you for the report.
should ...
maybe it is broken.
issue was reopened for further investigation.
jkowalleck commentedon Aug 30, 2023
@andife , could you provide a reproducible setup? for testing purposes
which steps need to be done to reproduce your results?
andife commentedon Aug 30, 2023
Yes, I made an github workflow to demonstrate that behavoir.
https://github.com/andife/cyclonedx-python/blob/test_spdxy/.github/workflows/test_spdx.yml
The results / artifacts, two json spdx-files could be found at
https://github.com/andife/cyclonedx-python/actions/runs/6024699313
results:
Comparing the two results, the number of entrys is exactly the same:
jkowalleck commentedon Aug 31, 2023
found some "doubled" licenses:
{ "author": "Jeff Forcier", "bom-ref": "116dab0b-5e60-480a-bbc2-49bfacc90686", "licenses": [ { "license": { "name": "BSD" } }, { "license": { "name": "BSD License" } } ], "name": "invoke", "purl": "pkg:pypi/[email protected]", "type": "library", "version": "1.7.3" }found the SPDX detection still not working
[-]Clean-Up of cyclonedx-files a bit?[/-][+]fix: license doubles & feat:SPDX license detection[/+][-]fix: license doubles & feat:SPDX license detection[/-][+]fix: license doubles & feat: SPDX license ID instead of named licenses[/+]jkowalleck commentedon Aug 31, 2023
proper SPDX license detection is a feature of #459
this issue should be a bugfix for the duplicates. it might depend on #459
[-]fix: license doubles & feat: SPDX license ID instead of named licenses[/-][+]fix: license doubles[/+][-]fix: license doubles[/-][+]feat: clean license doubles[/+]jkowalleck commentedon Aug 31, 2023
after #459 was implemented,
it will still happen that some licenses are duplicate, since there is no fuzzy detection for license names, yet
jkowalleck commentedon Aug 31, 2023
remember: the "license" field may dome from multiple sources:
they solve different purposes, and one allows free text ...
jkowalleck commentedon Sep 6, 2023
Cleaning the license doubles will not happen, sorry. some of the information is sourced from a free text where package authors may write whatever they want.
The SPDX ids are mapped correctly now, thanks to #576.
The SPDX expressions are detected correctly now, thanks to #578