Skip to content

Commit

Permalink
Use project root as T.workspace also in meta-build (#2809)
Browse files Browse the repository at this point in the history
Fixes #2802

Pull request: #2809
  • Loading branch information
lolgab authored Oct 2, 2023
1 parent 7c2114e commit 1a7e758
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions main/eval/src/mill/eval/EvaluatorImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import scala.reflect.ClassTag
*/
private[mill] case class EvaluatorImpl(
home: os.Path,
workspace: os.Path,
outPath: os.Path,
externalOutPath: os.Path,
rootModule: mill.define.BaseModule,
Expand Down
3 changes: 2 additions & 1 deletion main/eval/src/mill/eval/GroupEvaluator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import scala.util.control.NonFatal
*/
private[mill] trait GroupEvaluator {
def home: os.Path
def workspace: os.Path
def outPath: os.Path
def externalOutPath: os.Path
def rootModule: mill.define.BaseModule
Expand Down Expand Up @@ -299,7 +300,7 @@ private[mill] trait GroupEvaluator {
env = env,
reporter = reporter,
testReporter = testReporter,
workspace = rootModule.millSourcePath
workspace = workspace
) with mill.api.Ctx.Jobs {
override def jobs: Int = effectiveThreadCount
}
Expand Down
1 change: 1 addition & 0 deletions main/testkit/src/mill/testkit/MillTestkit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ trait MillTestKit {
}
val evaluator = mill.eval.EvaluatorImpl(
mill.api.Ctx.defaultHome,
module.millSourcePath,
outPath,
outPath,
module,
Expand Down
1 change: 1 addition & 0 deletions runner/src/mill/runner/MillBuildBootstrap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ class MillBuildBootstrap(

mill.eval.EvaluatorImpl(
home,
projectRoot,
recOut(projectRoot, depth),
recOut(projectRoot, depth),
rootModule,
Expand Down

0 comments on commit 1a7e758

Please sign in to comment.