Open RalfJung opened 6 months ago
When we added the messages in #11407, we acknowledged that we could extend this with more information. For me, part of the challenge is how much is reasonable to show with -v
or -vv
. Each person enabling those flags is likely wanting something different. If its just showing which deps changed, then that is likely reasonable.
When we finish #2904, the expectation is we'd have a cargo report
subcommand that could go into more detail after the fact. This provides a more specialized view that allows us to go into more detail and helps when these aren't reproducible (or the way to reproduce is not yet known).
There was a change (https://github.com/rust-lang/cargo/commit/e08848c974c1ab289d6240da113141d999b0639f) in #11407 giving richer information. It was backed out because the new display requires more design discussions than others.
I don't mind adding them back behind -vv
, though I agree with epage that #2904 might be a better way out.
Problem
Debugging unexpected rebuilds got a lot nicer with
cargo build -v
showing a reason for "Dirty" crates. However, sometimes one getswhich 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 showsSo 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