Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Dec 16, 2024
1 parent e8ccfca commit 09c551b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion main/eval/src/mill/eval/GroupEvaluator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ private[mill] trait GroupEvaluator {

val cachedValueAndHash = upToDateWorker
.map((_, inputsHash))
.orElse(cached.flatMap { case (inputHash, valOpt, valueHash) => valOpt.map((_, valueHash)) })
.orElse(cached.flatMap { case (inputHash, valOpt, valueHash) =>
valOpt.map((_, valueHash))
})

cachedValueAndHash match {
case Some((v, hashCode)) =>
Expand Down
2 changes: 1 addition & 1 deletion main/eval/src/mill/eval/Terminal.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package mill.eval

import mill.define.{NamedTask, Segment, Segments}
import mill.define.{NamedTask, Segments}

/**
* A terminal or terminal target is some important work unit, that in most cases has a name (Right[Labelled])
Expand Down
2 changes: 1 addition & 1 deletion main/test/src/mill/util/TestGraphs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ object TestGraphs {
def left = Task { task1() }
def right = Task { task1() + left() + 1 }
val task2 = Task.Anon { left() + right() }
def task3 = Task{ task2() }
def task3 = Task { task2() }
}

trait CanNest extends Module {
Expand Down

0 comments on commit 09c551b

Please sign in to comment.