You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some dependencies that are declared as test requirements (like gtest for example).
When I generate the sbom, they appear in the json file, they should not.
The text was updated successfully, but these errors were encountered:
sbouchexbellomie-Philips
changed the title
[bug] cyclonedx sbom generation should offer an option to exclude "test" & "tools" dependencies
[bug] cyclonedx sbom generation should offer an option to exclude "test" dependencies
Feb 3, 2025
Do you refer to the new from conan.tools.sbom functionality?
This wouldn't be a bug, but a feature request, labeling as such. Actually, it is a good point, maybe the default should be to exclude the test-requires and use only the "host" requires for the sboms, and have the others as opt-ins.
@memsharded Exactly, I'm using this experimental feature to generate the sbom and right now, I have to use yq to manually cleanup the file.
Having the opt-ins option would be perfect for me as it can be triggered at runtime.
Describe the bug
Conan version 2.12.1 on linux
How to reproduce it
I have some dependencies that are declared as test requirements (like gtest for example).
When I generate the sbom, they appear in the json file, they should not.
The text was updated successfully, but these errors were encountered: