Skip to content

Commit

Permalink
On CIs, always get the latest support Scala versions listing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Jun 14, 2022
1 parent 1f466b6 commit e8962d5
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,14 @@ final case class BuildOptions(
}

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

private[build] def computeScalaParams(
scalaCliVersion: String,
Expand Down

0 comments on commit e8962d5

Please sign in to comment.