Skip to content

Commit a322491

Browse files
committed
make sure it works with Scala 3
1 parent c7fefea commit a322491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/tasty-lib/src/main/scala/scala/build/tastylib/TastyVersions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object TastyVersions {
1616
scalaVersion: String,
1717
scalaCliVersion: String
1818
): Either[String, Boolean] =
19-
if (!scalaVersion.startsWith("3.")) Right(false)
19+
if (!scalaVersion.startsWith("3.") && scalaVersion != "3" ) Right(false)
2020
else
2121
scalaVersion.split('.')(1).toInt match {
2222
case scalaMinor if scalaMinor > LatestSupportedScala.MinorVersion =>

0 commit comments

Comments
 (0)