Add spdx relationship encoding for dependencies (#1342)

Co-authored-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Alex Goodman
2022-11-18 09:40:10 -05:00
committed by GitHub
co-authored by Keith Zantow
parent 42cb0a47a4
commit 9afc9231c0
@@ -362,6 +362,8 @@ func lookupRelationship(ty artifact.RelationshipType) (bool, RelationshipType, s
switch ty {
case artifact.ContainsRelationship:
return true, ContainsRelationship, ""
case artifact.DependencyOfRelationship:
return true, DependencyOfRelationship, ""
case artifact.OwnershipByFileOverlapRelationship:
return true, OtherRelationship, fmt.Sprintf("%s: indicates that the parent package claims ownership of a child package since the parent metadata indicates overlap with a location that a cataloger found the child package by", ty)
}