mirror of https://github.com/sbt/sbt.git
Fixes https://github.com/sbt/sbt/issues/6210 scodec-bits is published with pvp versionScheme (nice), this means that we should just evaluate the version portion for pvp-ness, but I was using `guessSecondSegment` that checks for Scala suffix. That's mistake 1. `guessSecondSegment` assumes that the Scala suffix uses the given ScalaModuleInfo, but with 2.13-3 sandwich we can't assume this. In the reported case, Scala module is 3.0.0-M3 but scodec-bits uses 2.13. So that's mistake 2. This attempts to correct both the mistakes. 1. Instead of `guessSecondSegment`, this adds a simpler `evalPvp` function. 2. `guessSecondSegment` just looks for `_2.` or `_3` and ignores the Scala module. |
||
|---|---|---|
| .. | ||
| DatatypeConfig.scala | ||
| Dependencies.scala | ||
| HouseRulesPlugin.scala | ||
| SbtScriptedIT.scala | ||
| Util.scala | ||
| build.properties | ||
| plugins.sbt | ||