VirtusLab/besom

Set assumedEvictionErrorLevel to Level.Error

jchapuis opened this issue ยท 9 comments

There is an intrinsic eviction warning in the latest build of besom-core with com.lihaoyi:sourcecode . pprint depends on 0.2.7 while besom-core depends on 0.3.1.

Setting assumedEvictionErrorLevel := Level.Error should help in surfacing these issues.

Interesting. We use scala-cli to build the whole thing and it didn't catch it, apparently.

Yes so this is actually quite problematic for us as we are using sbt with strict eviction avoidance. Because of this intrinsic compatibility issue in the library, in all projects using besom we have to add libraryDependencySchemes += "com.lihaoyi" %% "sourcecode" % "always"

Would a quickfix release of 0.3.2 with correct dependency tree help?

@Gedochao are you aware if scala-cli has any way to prevent eviction-related issues like this? Docs are silent on this topic.

@lbialy maybe I should have answered directly, yes a quickfix release would help as right now this libraryDependencySchemes is propagating throughout our repos ๐Ÿ™‚

For reference: the only way to validate this, for now, is to use scala-cli export . --sbt in core and then sbt evicted in dest directory. This shows possible versioning problems. I have fixed them manually in #500.

fixed in #500, will release 0.3.2 momentarily

@jchapuis I have released 0.3.2-SNAPSHOT (sonatype snapshot repo) today, could you please verify that it solves this issue for you? I will release complete 0.3.2 version once you confirm it does indeed solve your issues.

@lbialy thanks! I can confirm it works ๐ŸŽ‰