We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CrossVersion
withDottyCompat
1 parent 80b1fd3 commit 2b6417bCopy full SHA for 2b6417b
sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala
@@ -93,7 +93,7 @@ object DottyPlugin extends AutoPlugin {
93
val name = moduleID.name
94
if (name != "dotty" && name != "dotty-library" && name != "dotty-compiler")
95
moduleID.crossVersion match {
96
- case _: librarymanagement.Binary =>
+ case binary: librarymanagement.Binary =>
97
val compatVersion =
98
CrossVersion.partialVersion(scalaVersion) match {
99
case Some((3, _)) =>
@@ -107,7 +107,7 @@ object DottyPlugin extends AutoPlugin {
107
""
108
}
109
if (compatVersion.nonEmpty)
110
- moduleID.cross(CrossVersion.constant(compatVersion))
+ moduleID.cross(CrossVersion.constant(binary.prefix + compatVersion + binary.suffix))
111
else
112
moduleID
113
case _ =>
0 commit comments