Skip to content

Commit

Permalink
Properly use sig of millBootClasspath if there is no meta build
Browse files Browse the repository at this point in the history
Fix #2419
  • Loading branch information
lefou committed Apr 5, 2023
1 parent ab05091 commit 87153db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions runner/src/mill/runner/MillBuildBootstrap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class MillBuildBootstrap(
logger: ColorLogger
) {

val millBootClasspath = MillBuildBootstrap.prepareMillBootClasspath(projectRoot / "out")
val millBootClasspath: Seq[Path] = MillBuildBootstrap.prepareMillBootClasspath(projectRoot / "out")

def evaluate(): Watching.Result[RunnerState] = {
val runnerState = evaluateRec(0)
Expand Down Expand Up @@ -136,8 +136,10 @@ class MillBuildBootstrap(
.frames
.dropRight(1)
.headOption
.map(_.runClasspath.map(p => (p.path, p.sig)).hashCode())
.getOrElse(0),
.map(_.runClasspath)
.getOrElse(millBootClasspath.map(PathRef(_)))
.map(p => (p.path, p.sig))
.hashCode(),
depth
)

Expand Down

0 comments on commit 87153db

Please sign in to comment.