diff options
Diffstat (limited to 'core')
-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) } |