Open
Description
openedon May 4, 2024
Problem
Debugging unexpected rebuilds got a lot nicer with cargo build -v
showing a reason for "Dirty" crates. However, sometimes one gets
Dirty miri v0.1.0 (D:\a\miri\miri): dependency info changed
which is not really actionable, given that nothing about the crate itself (Cargo.toml / Cargo.lock) changed.
Proposed Solution
Would be great to get some more details about what changed here. For this specific case, the cargo::core::compiler::fingerprint
log shows
2024-05-04T06:41:27.4318113Z 0.102008300s INFO prepare_target{force=false package_id=miri v0.1.0 (D:\a\miri\miri) target="miri"}: cargo::core::compiler::fingerprint: fingerprint dirty for miri v0.1.0 (D:\a\miri\miri)/Build/TargetInner { name: "miri", tested: false, doc: true, ..: with_path("D:\\a\\miri\\miri\\src\\bin\\miri.rs", Edition2021) }
2024-05-04T06:41:27.4320415Z 0.102041200s INFO prepare_target{force=false package_id=miri v0.1.0 (D:\a\miri\miri) target="miri"}: cargo::core::compiler::fingerprint: dirty: UnitDependencyInfoChanged { old_name: "ctrlc", old_fingerprint: 6202229392602597251, new_name: "ctrlc", new_fingerprint: 4374262352119191711 }
So apparently the ctrlc crate changed somehow. I don't know what this means, but maybe it would make sense to mention ctrlc in the cargo build -v
output. Maybe it could even explain what changed about ctrlc -- I have no idea what flows into this fingerprint that apparently changed.
Notes
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Area: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Status: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review