Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.mill
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//| mill-version: 1.0.0-M1-13-54815e
//| mill-version: 1.0.0-M1-30-aa7125
//| mill-jvm-opts: ["-XX:NonProfiledCodeHeapSize=250m", "-XX:ReservedCodeCacheSize=500m"]
//| mill-opts: ["--jobs=0.5C"]

Expand Down Expand Up @@ -128,7 +128,7 @@ val bridgeScalaVersions = Seq(
// on the fly anyway. For publishing, we publish everything or a specific version
// if given.
val compilerBridgeScalaVersions =
interp.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
mill.define.BuildCtx.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
case None | Some("") | Some("none") => Seq.empty[String]
case Some("all") => (essentialBridgeScalaVersions ++ bridgeScalaVersions).distinct
case Some("essential") => essentialBridgeScalaVersions
Expand Down Expand Up @@ -185,7 +185,7 @@ def formatDep(dep: Dep) = {
s"${d.module.organization.value}:${d.module.name.value}:${d.versionConstraint.asString}"
}

def listIn(path: os.Path) = interp.watchValue(os.list(path).map(_.last))
def listIn(path: os.Path) = mill.define.BuildCtx.watchValue(os.list(path).map(_.last))

val dummyDeps: Seq[Dep] = Seq(
Deps.DocDeps.millScip,
Expand Down
47 changes: 0 additions & 47 deletions ci/mill-bootstrap.patch
Original file line number Diff line number Diff line change
@@ -1,47 +0,0 @@
diff --git a/build.mill b/build.mill
index 4465e163a55..6b8da38aae7 100644
--- a/build.mill
+++ b/build.mill
@@ -124,7 +124,7 @@ val bridgeScalaVersions = Seq(
// on the fly anyway. For publishing, we publish everything or a specific version
// if given.
val compilerBridgeScalaVersions =
- interp.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
+ mill.define.BuildCtx.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
case None | Some("") | Some("none") => Seq.empty[String]
case Some("all") => (essentialBridgeScalaVersions ++ bridgeScalaVersions).distinct
case Some("essential") => essentialBridgeScalaVersions
@@ -181,7 +181,7 @@ def formatDep(dep: Dep) = {
s"${d.module.organization.value}:${d.module.name.value}:${d.versionConstraint.asString}"
}

-def listIn(path: os.Path) = interp.watchValue(os.list(path).map(_.last))
+def listIn(path: os.Path) = mill.define.BuildCtx.watchValue(os.list(path).map(_.last))

val dummyDeps: Seq[Dep] = Seq(
Deps.DocDeps.millScip,
diff --git a/integration/package.mill b/integration/package.mill
index a5183fc0a5a..4cb6f6689cd 100644
--- a/integration/package.mill
+++ b/integration/package.mill
@@ -14,6 +14,7 @@ import mill.T
import mill.define.Cross
import mill.testrunner.TestResult
import millbuild.*
+import upickle.implicits.namedTuples.default.given

object `package` extends mill.Module {
// We compile the test code once and then offer multiple modes to
diff --git a/runner/codesig/package.mill b/runner/codesig/package.mill
index 3950422474a..1ed233d24f7 100644
--- a/runner/codesig/package.mill
+++ b/runner/codesig/package.mill
@@ -18,7 +18,7 @@ object `package` extends MillPublishScalaModule {

override lazy val test: CodeSigTests = new CodeSigTests {}
trait CodeSigTests extends MillScalaTests {
- val caseKeys = build.interp.watchValue(
+ val caseKeys = mill.define.BuildCtx.watchValue(
os.walk(moduleDir / "cases", maxDepth = 3)
.map(_.subRelativeTo(moduleDir / "cases").segments)
.collect { case Seq(a, b, c) => s"$a-$b-$c" }
1 change: 1 addition & 0 deletions integration/package.mill
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import mill.T
import mill.define.Cross
import mill.testrunner.TestResult
import millbuild.*
import upickle.implicits.namedTuples.default.given

object `package` extends mill.Module {
// We compile the test code once and then offer multiple modes to
Expand Down
2 changes: 1 addition & 1 deletion runner/codesig/package.mill
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object `package` extends MillPublishScalaModule {

override lazy val test: CodeSigTests = new CodeSigTests {}
trait CodeSigTests extends MillScalaTests {
val caseKeys = build.interp.watchValue(
val caseKeys = mill.define.BuildCtx.watchValue(
os.walk(moduleDir / "cases", maxDepth = 3)
.map(_.subRelativeTo(moduleDir / "cases").segments)
.collect { case Seq(a, b, c) => s"$a-$b-$c" }
Expand Down