Skip to content

Commit 8929fad

Browse files
authored
Merge pull request #3511 from scala-steward-org/fix/mill-plugin/64
Run Mill 0.12 with `--ticker=false`
2 parents 7dad28f + f0943c9 commit 8929fad

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ runSteward := Def.taskDyn {
447447
Seq("--git-ask-pass", s"$home/.github/askpass/$gitHubLogin.sh"),
448448
// Seq("--github-app-id", IO.read(gitHubAppDir / "scala-steward.app-id.txt").trim),
449449
// Seq("--github-app-key-file", s"$gitHubAppDir/scala-steward.private-key.pem"),
450+
Seq("--repo-config", s"$projectDir/.scala-steward.conf"),
450451
Seq("--whitelist", s"$home/.cache/coursier"),
451452
Seq("--whitelist", s"$home/.cache/JNA"),
452453
Seq("--whitelist", s"$home/.cache/mill"),

modules/core/src/main/scala/org/scalasteward/core/buildtool/mill/MillAlg.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ final class MillAlg[F[_]](defaultResolver: Resolver)(implicit
4646
)
4747

4848
private def runMill(buildRootDir: File) = {
49-
val command =
50-
Nel("mill", List("--no-server", "--import", cliPluginCoordinate, "show", extractDeps))
49+
val options =
50+
List("--no-server", "--ticker=false", "--import", cliPluginCoordinate, "show", extractDeps)
51+
val command = Nel("mill", options)
5152
processAlg.execSandboxed(command, buildRootDir)
5253
}
5354
private def runMillUnder011(buildRootDir: File, millBuildVersion: Option[Version]) = {

modules/core/src/test/scala/org/scalasteward/core/buildtool/mill/MillAlgTest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class MillAlgTest extends FunSuite {
4040
repoDir,
4141
"mill",
4242
"--no-server",
43+
"--ticker=false",
4344
"--import",
4445
"ivy:org.scala-steward::scala-steward-mill-plugin::0.18.0",
4546
"show",

0 commit comments

Comments
 (0)