mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
fix: capture dependencies when parsing SPDX SBOMs (#2869)
Signed-off-by: Russell Haering <russellhaering@gmail.com>
This commit is contained in:
@@ -381,6 +381,13 @@ func collectDocRelationships(spdxIDMap map[string]any, doc *spdx.Document) (out
|
||||
}
|
||||
} else {
|
||||
switch helpers.RelationshipType(r.Relationship) {
|
||||
case helpers.DependencyOfRelationship:
|
||||
typ = artifact.DependencyOfRelationship
|
||||
to = toPackage
|
||||
case helpers.DependsOnRelationship:
|
||||
typ = artifact.DependencyOfRelationship
|
||||
to = from
|
||||
from = toPackage
|
||||
case helpers.ContainsRelationship:
|
||||
typ = artifact.ContainsRelationship
|
||||
to = toPackage
|
||||
|
||||
Reference in New Issue
Block a user