This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
Reproduction case for a bug we discovered in the past; Dune was
|
||||
storing the wrong stats for generated files in the digest cache and as
|
||||
a result was always re-hashing all files in the build directory on the
|
||||
second run.
|
||||
|
||||
More precisely, we were using the stats of the file before making it
|
||||
read-only.
|
||||
|
||||
|
||||
$ echo '(lang dune 3.0)' > dune-project
|
||||
$ touch x y z
|
||||
$ dune build x y z --wait-for-filesystem-clock
|
||||
|
||||
Check that the next build rehashes nothing:
|
||||
|
||||
$ dune build x y z --wait-for-filesystem-clock --debug-digests 2>&1 | sed 's/stats = { .*\( perm = [0-9]*\).*}/stats = {\1; ... }/'
|
||||
Loading…
Add table
Add a link
Reference in a new issue