diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-26 16:28:11 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-26 16:28:11 -0800 |
commit | d6573e2238c72de1ffbc344a962a0cfaa557f983 (patch) | |
tree | da88ebe7f8a207a5568b722b8d380a57eda11020 /core/src/main/scala | |
parent | b12833e99e1e0939ec35ec31a15631e777cd7446 (diff) | |
download | mill-d6573e2238c72de1ffbc344a962a0cfaa557f983.tar.gz mill-d6573e2238c72de1ffbc344a962a0cfaa557f983.tar.bz2 mill-d6573e2238c72de1ffbc344a962a0cfaa557f983.zip |
Get acyclic's tests running after compilation failures, fixing a metadata.mill.json invalidation bug
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/mill/eval/Evaluator.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/main/scala/mill/eval/Evaluator.scala b/core/src/main/scala/mill/eval/Evaluator.scala index 007e1755..db74445c 100644 --- a/core/src/main/scala/mill/eval/Evaluator.scala +++ b/core/src/main/scala/mill/eval/Evaluator.scala @@ -115,6 +115,11 @@ class Evaluator(workspacePath: Path, write.over(metadataPath, upickle.default.write(inputsHash -> terminalResult, indent = 4)) case _ => + // Wipe out any cached metadata.mill.json file that exists, so + // a following run won't look at the cached metadata file and + // assume it's associated with the possibly-borked state of the + // destPath after an evaluation failure. + rm(metadataPath) } |