Skip to content

Commit

Permalink
Use a more portable way to download an old compiler for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prolativ committed Dec 29, 2021
1 parent 8591fe6 commit ea97378
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/test/dotty/tools/vulpix/ParallelTesting.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1426,9 +1426,9 @@ object ParallelTesting {
dir
else
import scala.sys.process._
val zipPath = cache.resolve(s"scala3-$version.zip")
val compilerDownloadUrl = s"https://github.com/lampepfl/dotty/releases/download/$version/scala3-$version.zip"
(URL(compilerDownloadUrl) #>> zipPath.toFile #&& s"unzip $zipPath -d $cache").!!
val zipPath = cache.resolve(s"scala3-$version.tar.gz")
val compilerDownloadUrl = s"https://github.com/lampepfl/dotty/releases/download/$version/scala3-$version.tar.gz"
(URL(compilerDownloadUrl) #>> zipPath.toFile #&& s"tar -xf $zipPath -C $cache").!!
dir
}

Expand Down

0 comments on commit ea97378

Please sign in to comment.