Skip to content

Commit

Permalink
Auto merge of #6782 - ehuss:build-script-fingerprint-fixes, r=alexcri…
Browse files Browse the repository at this point in the history
…chton

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.
  • Loading branch information
bors committed Mar 26, 2019
2 parents 4cc4337 + a09e295 commit 1ebf6ef
Show file tree
Hide file tree
Showing 3 changed files with 460 additions and 58 deletions.
1 change: 1 addition & 0 deletions src/cargo/core/compiler/custom_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub struct BuildScripts {
pub plugins: BTreeSet<PackageId>,
}

#[derive(Debug)]
pub struct BuildDeps {
pub build_script_output: PathBuf,
pub rerun_if_changed: Vec<PathBuf>,
Expand Down
Loading

0 comments on commit 1ebf6ef

Please sign in to comment.