-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Moving CARGO_HOME invalidates target caches #10915
Copy link
Copy link
Open
Labels
A-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-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
When the
CARGO_HOMEfolder is moved to a new location, subsequent builds invalidatetargetfolder caches because source file paths were updated. This is relevant in CI, where a cache folder can be placed in a new location for every build. If the path changes, there is no way to cache crates, so they must be rebuilt every time.Steps
Note that
serdeis built twice, after theCARGO_HOMEfolder is moved.Possible Solution(s)
Perhaps it is possible to have the
CARGO_HOMEportion of crate build paths replaced with something that does not change?Notes
No response
Version
No response