File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
modules/options/src/main/scala/scala/build/options Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -352,11 +352,14 @@ final case class BuildOptions(
352
352
}
353
353
354
354
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
358
362
computeScalaParams(Constants .version, finalCache.withTtl(0 .seconds))
359
- )
360
363
361
364
private [build] def computeScalaParams (
362
365
scalaCliVersion : String ,
You can’t perform that action at this time.
0 commit comments