scala-cli
scala-cli copied to clipboard
Should not suggest incompatible update of dependency
Version(s) 0.2.0
Describe the bug Scala CLI suggests updating a dependency even if it would create a binary incompatibility.
To Reproduce
//> using lib "com.softwaremill.sttp.client3::upickle::3.8.13"
//> using lib "com.lihaoyi::upickle::2.0.0"
$ scala-cli compile bug.scala
Downloading 3 dependencies
Compiling project (Scala 3.2.2, JVM)
Compiled project (Scala 3.2.2, JVM)
[hint] ./bug.scala:2:16
[hint] "upickle is outdated, update to 3.0.0"
[hint] upickle 2.0.0 -> com.lihaoyi::upickle::3.0.0
[hint] //> using lib "com.lihaoyi::upickle::2.0.0"
[hint] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expected behaviour Scala CLI should not suggest to update upickle to 3.0.0, without suggesting to update sttp to a upickle-3.0.0-binary-compatible version.
A related bug or improvement is https://github.com/VirtusLab/scala-cli/issues/1927