Skip to content

Commit

Permalink
Lock millw script commit in export command
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Feb 7, 2022
1 parent 8bd198c commit 8c6a43d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ class Build(val crossScalaVersion: String)
|
| def ammoniteVersion = "${Deps.ammonite.dep.version}"
| def millVersion = "${InternalDeps.Versions.mill}"
| def lefouMillwRef = "${InternalDeps.Versions.lefouMillwRef}"
|
| def defaultScalafmtVersion = "${Deps.scalafmtCli.dep.version}"
|
Expand Down
4 changes: 2 additions & 2 deletions modules/cli/src/main/scala/scala/cli/commands/Export.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ object Export extends ScalaCommand[ExportOptions] {
Sbt(sbtVersion, extraSettings, logger)
def millBuildTool(cache: FileCache[Task], logger: Logger) = {
val launcherArtifacts = Seq(
os.rel / "mill" -> "https://github.com/lefou/millw/raw/main/millw",
os.rel / "mill.bat" -> "https://github.com/lefou/millw/raw/main/millw.bat"
os.rel / "mill" -> s"https://github.com/lefou/millw/raw/${Constants.lefouMillwRef}/millw",
os.rel / "mill.bat" -> s"https://github.com/lefou/millw/raw/${Constants.lefouMillwRef}/millw.bat"
)
val launcherTasks = launcherArtifacts.map {
case (path, url) =>
Expand Down
1 change: 1 addition & 0 deletions project/deps.sc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ object InternalDeps {
// so we use a higher hard-coded version instead.
// os.read(os.pwd / ".mill-version").trim
"0.10.0-21-c4247b"
def lefouMillwRef = "166bcdf5741de8569e0630e18c3b2ef7e252cd96"
}
}

Expand Down

0 comments on commit 8c6a43d

Please sign in to comment.