-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-bugCategory: bugCategory: bugS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Description
Problem
If you do a build without setting CARGO_BUILD_SBOM=true, then do the same build except this time setting CARGO_BUILD_SBOM=true, then no SBOM is generated.
Actual behaviour
$ cargo init foo
$ cd foo
$ cargo +nightly build
...
$ CARGO_BUILD_SBOM=true cargo +nightly -Z sbom build
...
$ ls target/debug/
build deps examples foo foo.d incrementalExpected behaviour
I expect the second build to generate an SBOM file for foo.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
cargo 1.89.0-nightly (fc1518ef0 2025-06-06)
Metadata
Metadata
Assignees
Labels
A-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-bugCategory: bugCategory: bugS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.