Repository navigation
Unified invoked.timestamp location for compilation and build script units - #17718
Conversation
|
r? @weihanglo rustbot has assigned @weihanglo. Use Why was this reviewer chosen?The reviewer was selected based on:
|
There was a problem hiding this comment.
FWIW, this comment is kinda outdated and can be deleted I guess:
cargo/src/compiler/fingerprint/mod.rs
Lines 142 to 145 in 111443f
| [package] | ||
| name = "cargo-util" | ||
| version = "0.3.0" | ||
| version = "0.4.0" |
There was a problem hiding this comment.
Why do we need a major version bump? 0.3.1 should be good enough?
There was a problem hiding this comment.
I guess it depends on what is breaking. The API shape did not change, but the semantics did which could be considered breaking.
There was a problem hiding this comment.
Indeed, though cargo-util is internal only crate, and if we do care about breaking downstreams, an alternative is have different API name. Under the same may have too little visiblity.
Anyway, this is not worth too much time. Merging!
9ab3e60 to
9dc6932
Compare
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
Update cargo submodule 22 commits in ede6cefea9731cb595942338824c2f9a610b8189..f93c676e3e7ab1aee08dc95d869700f6b99a1a20 2026-11-11 12:33:16 +0000 to 2026-11-15 17:27:10 +0000 - fix(config)!: Clean up ConfigRelativePath (rust-lang/cargo#17742) - Add support for `annotate-snippets`'s `no-graphics` output format (rust-lang/cargo#17735) - fix(config)!: Polish the API (rust-lang/cargo#17736) - chore(deps): update rust crate rusqlite to 0.42.0 (rust-lang/cargo#17723) - perf(compile)!: Switch dev profile to debug=lines-and-tables-only (rust-lang/cargo#17518) - test: Add unordered to pub_priv::verify_mix_cargo_feature_z (rust-lang/cargo#17737) - Reworked output mtime tracking (rust-lang/cargo#17732) - fix(trim-paths): sanitize absolute source paths in fingerprint (rust-lang/cargo#17556) - reference: remove implied meaning (rust-lang/cargo#17731) - chore(deps): update rust crate opener to 0.9.0 (rust-lang/cargo#17722) - chore(deps): update taiki-e/install-action action to v2.90.3 (rust-lang/cargo#17724) - chore(deps): update actions/checkout action to v7 (rust-lang/cargo#17725) - feat(config): Iterate on config.toml's schema (rust-lang/cargo#17714) - chore(deps): update msrv to v1.100 (rust-lang/cargo#17721) - chore(deps): update actions/upload-artifact action to v7 (rust-lang/cargo#17726) - chore(deps): update crate-ci/typos action to v1.52.1 (rust-lang/cargo#17720) - chore: fix CI errors due to 1.100 (rust-lang/cargo#17719) - Unified invoked.timestamp location for compilation and build script units (rust-lang/cargo#17718) - refactor: Misc cleanup while playing with config (rust-lang/cargo#17713) - feat: OSC 8 link for package name in cargo info (rust-lang/cargo#17710) - chore: Update annotate-snippets to 0.12.18 (rust-lang/cargo#17712) - feat(config): Add a generated schema file (rust-lang/cargo#17708)
What does this PR try to resolve?
Currently the
invoked.timestampfile is in different directories based on the unit type:<build-dir>/.../<unit-dir>/fingerprint/invoked.timestamp<build-dir>/.../<unit-dir>/run/invoked.timestampThis PR unifies them to always be in
<build-dir>/.../<unit-dir>/fingerprint/invoked.timestamp.I don't see any reason to have them be in different places based on unit type.
Notes to reviewers
The motivation for this change is to eventually use
invoked.timestamps mtime for rebuild detection. (discussed in #t-cargo > vibe check on changing rustc output mtime tracking @ 💬)I just happened to notice this file is in multiple places based on the unit time while looking into that.
🤖 LLM involvement: None