Skip to content

Commit 24a2d6f

Browse files
committed
community-build: turn off SNAPSHOT updating in the meta-build too
We already start sbt with this command, but that only takes effect in the build, not the meta-build (and this still doesn't cover the meta-meta-...-builds, oh well).
1 parent 48b20eb commit 24a2d6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

project/Build.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,9 @@ object Build {
918918
(publishLocal in `dotty-compiler-bootstrapped`).value
919919
(publishLocal in `sbt-dotty`).value
920920
(publishLocal in `dotty-bootstrapped`).value
921-
val pluginText = s"""addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "$sbtDottyVersion")"""
921+
val pluginText =
922+
s"""updateOptions in Global ~= (_.withLatestSnapshots(false))
923+
|addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "$sbtDottyVersion")""".stripMargin
922924
IO.write(baseDirectory.value / "sbt-dotty-sbt", pluginText)
923925
IO.write(baseDirectory.value / "dotty-bootstrapped.version", dottyVersion)
924926
},

0 commit comments

Comments
 (0)