Skip to content

Commit 1ebf6ef

Browse files
committed
Auto merge of #6782 - ehuss:build-script-fingerprint-fixes, r=alexcrichton
Fix fingerprint for canceled build script. Fixes #6770. See that issue for a description. The fix is to include the compilation of the build script itself in the fingerprint of the `RunCustomBuild` Unit. This also includes some documentation for how fingerprints work. Also includes a test for docker-style caching of dependencies where timestamps get truncated to the nearest second.
2 parents 4cc4337 + a09e295 commit 1ebf6ef

File tree

3 files changed

+460
-58
lines changed

3 files changed

+460
-58
lines changed

src/cargo/core/compiler/custom_build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ pub struct BuildScripts {
6565
pub plugins: BTreeSet<PackageId>,
6666
}
6767

68+
#[derive(Debug)]
6869
pub struct BuildDeps {
6970
pub build_script_output: PathBuf,
7071
pub rerun_if_changed: Vec<PathBuf>,

0 commit comments

Comments
 (0)