Skip to content

Duplicate components #233

Closed Answered by jkowalleck
mmarseu asked this question in Q&A
Oct 6, 2022 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

yes, this is intentional.
if one component appears multiple times in the SBOM, then because NPM actually installed it multiple times, or because it was a bundledDependency of any package.
To make this visible, this component appears multiple times in the SBOM result.
This is just how NPM works, and therefore it is rendered accordingly.

in your example the packageB@1.0.0|packageC@1.0.0 is not the same as packageA@1.0.0|packageC@1.0.0. it might be equal, but this is still not guaranteed.


PS:
have a look at an example SBOM: https://github.com/CycloneDX/cyclonedx-node-npm/blob/main/demo/juice-shop/example-results/bom.1.4.xml
you will find strip-ansi@3.0.1 installed on top level, and multiple

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@rkg-mm
Comment options

@jkowalleck
Comment options

@stevespringett
Comment options

@jkowalleck
Comment options

@jkowalleck
Comment options

Answer selected by jkowalleck
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #183 on October 22, 2022 12:46.