Closed knqyf263 closed 4 days ago
The construction of the relationship between the root package and direct dependencies is now done by the SBOM package, etc. https://github.com/aquasecurity/trivy/blob/542a3808239e08a41087f8af531efe8762958f29/pkg/sbom/io/encode.go#L420-L462
However, since the logic has become complicated, it should be changed to be done on the analyzer side (strictly speaking, on the parser side) for the sake of simplification.
Description
The construction of the relationship between the root package and direct dependencies is now done by the SBOM package, etc. https://github.com/aquasecurity/trivy/blob/542a3808239e08a41087f8af531efe8762958f29/pkg/sbom/io/encode.go#L420-L462
However, since the logic has become complicated, it should be changed to be done on the analyzer side (strictly speaking, on the parser side) for the sake of simplification.
Related PRs
Checklist