mirror of https://github.com/sbt/sbt.git
Back out 98d81a62f9
This commit is contained in:
parent
22c743cf8a
commit
fdf8ee5146
|
|
@ -1411,13 +1411,13 @@ object Classpaths {
|
|||
|
||||
val outCacheFile = cacheFile / "output"
|
||||
def skipWork: In => UpdateReport =
|
||||
Tracked.lastOutputWithJson[In, UpdateReport](outCacheFile) {
|
||||
Tracked.lastOutput[In, UpdateReport](outCacheFile) {
|
||||
case (_, Some(out)) => out
|
||||
case _ => sys.error("Skipping update requested, but update has not previously run successfully.")
|
||||
}
|
||||
def doWork: In => UpdateReport =
|
||||
Tracked.inputChanged(cacheFile / "inputs") { (inChanged: Boolean, in: In) =>
|
||||
val outCache = Tracked.lastOutputWithJson[In, UpdateReport](outCacheFile) {
|
||||
val outCache = Tracked.lastOutput[In, UpdateReport](outCacheFile) {
|
||||
case (_, Some(out)) if uptodate(inChanged, out) => out
|
||||
case _ => work(in)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue