Skip to content

Commit 47abd5b

Browse files
committed
patch
1 parent 64ed196 commit 47abd5b

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

build.mill

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ val bridgeScalaVersions = Seq(
124124
// on the fly anyway. For publishing, we publish everything or a specific version
125125
// if given.
126126
val compilerBridgeScalaVersions =
127-
interp.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
127+
mill.define.BuildCtx.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
128128
case None | Some("") | Some("none") => Seq.empty[String]
129129
case Some("all") => (essentialBridgeScalaVersions ++ bridgeScalaVersions).distinct
130130
case Some("essential") => essentialBridgeScalaVersions
@@ -181,7 +181,7 @@ def formatDep(dep: Dep) = {
181181
s"${d.module.organization.value}:${d.module.name.value}:${d.versionConstraint.asString}"
182182
}
183183

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

186186
val dummyDeps: Seq[Dep] = Seq(
187187
Deps.DocDeps.millScip,

ci/mill-bootstrap.patch

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +0,0 @@
1-
diff --git a/build.mill b/build.mill
2-
index 4465e163a55..6b8da38aae7 100644
3-
--- a/build.mill
4-
+++ b/build.mill
5-
@@ -124,7 +124,7 @@ val bridgeScalaVersions = Seq(
6-
// on the fly anyway. For publishing, we publish everything or a specific version
7-
// if given.
8-
val compilerBridgeScalaVersions =
9-
- interp.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
10-
+ mill.define.BuildCtx.watchValue(sys.env.get("MILL_COMPILER_BRIDGE_VERSIONS")) match {
11-
case None | Some("") | Some("none") => Seq.empty[String]
12-
case Some("all") => (essentialBridgeScalaVersions ++ bridgeScalaVersions).distinct
13-
case Some("essential") => essentialBridgeScalaVersions
14-
@@ -181,7 +181,7 @@ def formatDep(dep: Dep) = {
15-
s"${d.module.organization.value}:${d.module.name.value}:${d.versionConstraint.asString}"
16-
}
17-
18-
-def listIn(path: os.Path) = interp.watchValue(os.list(path).map(_.last))
19-
+def listIn(path: os.Path) = mill.define.BuildCtx.watchValue(os.list(path).map(_.last))
20-
21-
val dummyDeps: Seq[Dep] = Seq(
22-
Deps.DocDeps.millScip,
23-
diff --git a/runner/codesig/package.mill b/runner/codesig/package.mill
24-
index 3950422474a..1ed233d24f7 100644
25-
--- a/runner/codesig/package.mill
26-
+++ b/runner/codesig/package.mill
27-
@@ -18,7 +18,7 @@ object `package` extends MillPublishScalaModule {
28-
29-
override lazy val test: CodeSigTests = new CodeSigTests {}
30-
trait CodeSigTests extends MillScalaTests {
31-
- val caseKeys = build.interp.watchValue(
32-
+ val caseKeys = mill.define.BuildCtx.watchValue(
33-
os.walk(moduleDir / "cases", maxDepth = 3)
34-
.map(_.subRelativeTo(moduleDir / "cases").segments)
35-
.collect { case Seq(a, b, c) => s"$a-$b-$c" }

runner/codesig/package.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object `package` extends MillPublishScalaModule {
1818

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

0 commit comments

Comments
 (0)