Resolve owned file paths when searching for overlaps (#3828)

* resolve owned file paths when searching for overlaps

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* dont remove empty paths

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman
2025-04-24 21:59:45 +00:00
committed by GitHub
parent 4211d79667
commit 03fa142de9
3 changed files with 138 additions and 27 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func finalizeRelationships(resolver file.Resolver, builder sbomsync.Builder, cfg
// add relationships showing packages that are evident by a file which is owned by another package (package-to-package)
if cfg.PackageFileOwnershipOverlap {
relationship.ByFileOwnershipOverlapWorker(accessor)
relationship.ByFileOwnershipOverlapWorker(resolver, accessor)
}
// conditionally remove binary packages based on file ownership overlap relationships found