Skip to content

Commit ea97378

Browse files
committed
Use a more portable way to download an old compiler for tests
1 parent 8591fe6 commit ea97378

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,9 +1426,9 @@ object ParallelTesting {
14261426
dir
14271427
else
14281428
import scala.sys.process._
1429-
val zipPath = cache.resolve(s"scala3-$version.zip")
1430-
val compilerDownloadUrl = s"https://github.com/lampepfl/dotty/releases/download/$version/scala3-$version.zip"
1431-
(URL(compilerDownloadUrl) #>> zipPath.toFile #&& s"unzip $zipPath -d $cache").!!
1429+
val zipPath = cache.resolve(s"scala3-$version.tar.gz")
1430+
val compilerDownloadUrl = s"https://github.com/lampepfl/dotty/releases/download/$version/scala3-$version.tar.gz"
1431+
(URL(compilerDownloadUrl) #>> zipPath.toFile #&& s"tar -xf $zipPath -C $cache").!!
14321432
dir
14331433
}
14341434

0 commit comments

Comments
 (0)