mirror of https://github.com/sbt/sbt.git
Merge pull request #6422 from smarter/fix-sandwich
Fix Scala 2.13-3.0 sandwich on Scala >= 3.0.0
This commit is contained in:
commit
59130d4703
|
|
@ -3786,7 +3786,7 @@ object Classpaths {
|
|||
|
||||
private[sbt] def isScala2Scala3Sandwich(sbv1: String, sbv2: String): Boolean = {
|
||||
def compare(a: String, b: String): Boolean =
|
||||
a == "2.13" && (b.startsWith("0.") || b.startsWith("3.0"))
|
||||
a == "2.13" && (b.startsWith("0.") || b.startsWith("3"))
|
||||
compare(sbv1, sbv2) || compare(sbv2, sbv1)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue