besom icon indicating copy to clipboard operation
besom copied to clipboard

Set assumedEvictionErrorLevel to Level.Error

Open jchapuis opened this issue 1 year ago • 4 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.

jchapuis avatar May 06 '24 09:05 jchapuis

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

lbialy avatar May 07 '24 07:05 lbialy

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"

jchapuis avatar May 08 '24 07:05 jchapuis

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

lbialy avatar May 08 '24 15:05 lbialy

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

lbialy avatar May 08 '24 15:05 lbialy

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

jchapuis avatar May 17 '24 13:05 jchapuis

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.

lbialy avatar May 23 '24 17:05 lbialy

fixed in #500, will release 0.3.2 momentarily

lbialy avatar May 24 '24 19:05 lbialy

@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 avatar Jun 10 '24 20:06 lbialy

@lbialy thanks! I can confirm it works 🎉

jchapuis avatar Jun 11 '24 06:06 jchapuis