What happened:
Syft found two identical dependencies in two different conanfile.txt files found in the source tree. This generated two Components in the CycloneDX SBOM that are identical in every way except for their bom-ref and syft:location:0:path.
What you expected to happen:
I would expect it would create one component and then generate multiple entries in the properties like so:
What happened: Syft found two identical dependencies in two different
conanfile.txt
files found in the source tree. This generated two Components in the CycloneDX SBOM that are identical in every way except for theirbom-ref
andsyft:location:0:path
.What you expected to happen: I would expect it would create one component and then generate multiple entries in the properties like so:
Steps to reproduce the issue: Create two
conanfile.txt
files and put them in two different locations in your source tree, and add these contents:Then run
syft scan dir:source_dir/ --output cyclonedx-json=example.json
Anything else we need to know?: This is similar to https://github.com/anchore/syft/issues/1162 but has to do with source trees and not scanning docker containers
Environment:
syft version
:cat /etc/os-release
or similar): MacOS 14.6.1FYI: This issue was filed on behalf of Adobe.