scalacenter / scalafix

Refactoring and linting tool for Scala
https://scalacenter.github.io/scalafix/
BSD 3-Clause "New" or "Revised" License
831 stars 186 forks source link

`ScalaVersion` rejects Scala 2 nightlies #2107

Open SethTisue opened 1 day ago

SethTisue commented 1 day ago

I'm trying to build and test more of Scalafix in the Scala 2 community build, but I keep hitting this:

[scalafix-rules] [info]   java.lang.Exception: 2.13.16-bin-ce78754 not a valid Scala Version.
[scalafix-rules] [info]   at scalafix.internal.config.ScalaVersion$.from(ScalaVersion.scala:138)

could the check be relaxed to allow nightlies?

(doc on nightlies: https://docs.scala-lang.org/overviews/core/nightlies.html)

SethTisue commented 1 day ago

context is https://github.com/scala/community-build/pull/1723 fyi @xuwei-k