Closed
Description
For any Scala source, let us call it Test.scala
the following fails
$ scala-cli project/scripts/bisect.scala -- compile Test.scala
Bisecting with validation script: /var/folders/j_/1jnflqdn6vg_6q2602rxq46m0000gn/T/scala-bisect-validator9193156609557343888
#####################################
#!/usr/bin/env bash
scala-cli compile -S "$1" --server=false Test.scala
#####################################
Verifying the first release: 3.0.1-RC1-bin-20210413-f3c1468-NIGHTLY
Testing 3.0.1-RC1-bin-20210413-f3c1468-NIGHTLY
Checking https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/
Checked https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/
Checking https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/maven-metadata.xml
Checked https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/maven-metadata.xml
19 is not a valid choice for -release
scalac -help gives more information
Compilation failed
Test result: 3.0.1-RC1-bin-20210413-f3c1468-NIGHTLY is a bad release
Exception in thread "main" java.lang.AssertionError: assertion failed: The evaluation script unexpectedly failed for the first checked release
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at ReleaseBisect.verifyEdgeReleases(bisect.scala:203)
at bisect$package$.run(bisect.scala:64)
at run.main(bisect.scala:53)