Skip to content

Commit b2a03a9

Browse files
On CIs, always get the latest supported Scala versions listing
1 parent 1f466b6 commit b2a03a9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

modules/options/src/main/scala/scala/build/options/BuildOptions.scala

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,14 @@ final case class BuildOptions(
352352
}
353353

354354
lazy val scalaParams: Either[BuildException, Option[ScalaParameters]] =
355-
computeScalaParams(Constants.version, finalCache).orElse(
356-
// when the passed scala version is missed in the cache, we always force a cache refresh
357-
// https://github.com/VirtusLab/scala-cli/issues/1090
355+
if (System.getenv("CI") == null)
356+
computeScalaParams(Constants.version, finalCache).orElse(
357+
// when the passed scala version is missed in the cache, we always force a cache refresh
358+
// https://github.com/VirtusLab/scala-cli/issues/1090
359+
computeScalaParams(Constants.version, finalCache.withTtl(0.seconds))
360+
)
361+
else
358362
computeScalaParams(Constants.version, finalCache.withTtl(0.seconds))
359-
)
360363

361364
private[build] def computeScalaParams(
362365
scalaCliVersion: String,

0 commit comments

Comments
 (0)