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.
1 parent 21e576b commit a0b51ccCopy full SHA for a0b51cc
interface/src/main/scala/coursier/internal/api/ApiHelper.scala
@@ -418,10 +418,11 @@ object ApiHelper {
418
.map(repository)
419
.toVector
420
421
+ val binVersionOpt = Option(complete.getScalaBinaryVersion)
422
val res = coursier.complete.Complete(cache0)
423
.withRepositories(repositories)
- .withScalaBinaryVersionOpt(Option(complete.getScalaBinaryVersion))
424
- .withScalaVersionOpt(Option(complete.getScalaVersion))
+ .withScalaBinaryVersionOpt(binVersionOpt)
425
+ .withScalaVersionOpt(Option(complete.getScalaVersion), binVersionOpt.isEmpty)
426
.withInput(complete.getInput)
427
.complete()
428
.unsafeRun()(cache0.ec)
0 commit comments