diff options
author | Roman Timushev <rtimush@gmail.com> | 2017-12-12 17:56:16 +0100 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-12 08:56:16 -0800 |
commit | 34494b02ac6622534694dd4285da5d5f224b8885 (patch) | |
tree | 54427174a1ddbd7e8d6b674be63d4dd6cbd8f292 /core/src/main/scala | |
parent | 908fd43e8de23bd0da7a98710e3146674de624f9 (diff) | |
download | mill-34494b02ac6622534694dd4285da5d5f224b8885.tar.gz mill-34494b02ac6622534694dd4285da5d5f224b8885.tar.bz2 mill-34494b02ac6622534694dd4285da5d5f224b8885.zip |
Do not erase cache for skipped tasks (#60)
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/mill/eval/Evaluator.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/scala/mill/eval/Evaluator.scala b/core/src/main/scala/mill/eval/Evaluator.scala index c45f1744..19fbb637 100644 --- a/core/src/main/scala/mill/eval/Evaluator.scala +++ b/core/src/main/scala/mill/eval/Evaluator.scala @@ -125,7 +125,9 @@ class Evaluator(workspacePath: Path, .write(v) write.over(metadataPath, upickle.default.write(inputsHash -> terminalResult, indent = 4)) - case _ => + case Result.Skipped => + // Do nothing + case _: Result.Failing => // 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 |