-
Notifications
You must be signed in to change notification settings - Fork 2.9k
CARGO_RUSTC_CURRENT_DIR is causing forced rebuilds #14798
Copy link
Copy link
Open
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-environment-variablesArea: environment variablesArea: environment variablesA-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Metadata
Metadata
Assignees
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationA-environment-variablesArea: environment variablesArea: environment variablesA-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
In the cargo repo, there is an environment override setting the
CARGO_RUSTC_CURRENT_DIRenvironment variable:cargo/.cargo/config.toml
Lines 7 to 10 in 79866e1
This is causing
testsuiteto always be considered dirty on my system. I am getting:Note the difference in trailing
/Steps
cargo test --test testsuite --no-runcargo test --test testsuite --no-run-- This should build testsuite again.Possible Solution(s)
No response
Notes
No response
Version