Duplicate packages after merge
example6-src.spdx.txt example6-lib.spdx.txt merge.spdx.json
sbomasm assemble -n merge -v 1 -t "application" -o merge.spdx.json example6-*.spdx
Both example6-src.spdx and example6-lib.spdx contain identical packages, go.reflect and go.strconv.
In the merge, these packages are present twice.
I would expect no duplicates.
In real-world examples, I have many duplicates.
Thanks for raising this issue. Will get back to you :+1:
@vargenau yes as mentioned in our readme, we do not remove duplicates, but if that is a requirement we will need to add a mode to each merge algo to remove duplicate components.
A potential Algo to identify duplicates would be
- PURL match
- CPE match
- Name-Version match
- Checksum match We would execute these checks in a sequence, whichever matches indicates its a duplicate and eleminate it.
Thanks for a feature request will work on this.
Any progress on implementing this?
@vargenau we implemented this for CycloneDX, will move over the logic for SPDX by next release.
Very good, thank you!
@vargenau v0.2.0 has been released please give it a shot.
@vargenau v0.2.0 has been released please give it a shot.
Yes, I have seen it. I will check. Thank you for the improvement.