Skip to content

fix(package): avoid duplicated dependencies#64

Merged
Urist-McGit merged 2 commits intomainfrom
fm/fix-unique-depends
Oct 8, 2025
Merged

fix(package): avoid duplicated dependencies#64
Urist-McGit merged 2 commits intomainfrom
fm/fix-unique-depends

Conversation

@fmoessbauer
Copy link
Member

Packages can have versioned dependencies, whereby a dependency is listed multiple times but with different version selectors (e.g. >> 2.41, << 2.42). According to the internal representation in debsbom, this still is a single dependency. However, we currently add it as two, leading to parallel edges (references) in the SBOM.

We fix this by adding a dynamic property to the BinaryPackage that returns the unique list of dependencies (according to what can be installed in parallel on a system).

Fixes: 958c97d ("Initial commit")

Packages can have versioned dependencies, whereby a dependency is listed
multiple times but with different version selectors (e.g. >> 2.41, <<
2.42). According to the internal representation in debsbom, this still
is a single dependency. However, we currently add it as two, leading to
parallel edges (references) in the SBOM.

We fix this by adding a dynamic property to the BinaryPackage that
returns the unique list of dependencies (according to what can be
installed in parallel on a system).

Fixes: 958c97d ("Initial commit")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
@fmoessbauer fmoessbauer force-pushed the fm/fix-unique-depends branch from f9525c4 to 6b0eca2 Compare October 7, 2025 15:08
@Urist-McGit Urist-McGit merged commit 613ddf3 into main Oct 8, 2025
11 checks passed
@Urist-McGit Urist-McGit deleted the fm/fix-unique-depends branch October 8, 2025 06:30
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