Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed: nightly build failed because of binary incompatible sbt check #10971

Closed
octonato opened this issue Sep 2, 2021 · 4 comments · Fixed by #11081
Closed

failed: nightly build failed because of binary incompatible sbt check #10971

octonato opened this issue Sep 2, 2021 · 4 comments · Fixed by #11081
Labels

Comments

@octonato
Copy link
Contributor

octonato commented Sep 2, 2021

The nightly build is failing since we merged #10956

I didn't look further, but I suspect this is due to the upgrade to sbt 1.5.5 and the fact that the nightly build uses a akka-http snapshot.

If I understand correct, what was previously an eviction warning is not by default an error.

 java.lang.RuntimeException: found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error] 
[error] 	* org.scala-lang.modules:scala-java8-compat_2.13:1.0.0 (early-semver) is selected over 0.9.1
[error] 	    +- com.typesafe.play:play-streams_2.13:2.8.1+1278-9f273803-akka-2.6.16+64-bb839128-SNAPSHOT-akka-http-10.1.14+6-971cf72c-SNAPSHOT (depends on 1.0.0)
[error] 	    +- com.typesafe.akka:akka-actor_2.13:2.6.16+64-bb839128-SNAPSHOT (depends on 1.0.0)
[error] 	    +- org.scala-lang.modules:scala-java8-compat_2.13:0.9.1 (depends on 0.9.1)
[error] 
[error] 
[error] this can be overridden using libraryDependencySchemes or evictionErrorLevel
[error] 	at scala.sys.package$.error(package.scala:30)
[error] 	at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:89)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:133)
[error] 	at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:73)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:146)
[error] 	at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:146)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:127)
[error] 	at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:219)
[error] 	at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:160)
[error] 	at sbt.Classpaths$.$anonfun$updateTask0$1(Defaults.scala:3678)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] 	at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] 	at sbt.Execute.work(Execute.scala:291)
@octonato octonato added the failed label Sep 2, 2021
@octonato
Copy link
Contributor Author

octonato commented Sep 2, 2021

Yep, that's sbt 1.5.5
https://eed3si9n.com/sbt-1.5.0

@mkurz mkurz mentioned this issue Sep 2, 2021
6 tasks
@mkurz
Copy link
Member

mkurz commented Sep 2, 2021

The problem is not really sbt 1.5.x. The master branch is using sbt 1.5.x already since probably half a year or so now and cron jobs were working fine.

The "problem" is that akka 2.6.15 switched to scala-java8-compat version 1.0.0. And because the cron job is using the latest akka snapshot, sbt 1.5 is complaining now that the version Play is using (0.9.1) and the version akka 2.15+ is using are incompatible.

Anyway, that will be fixed by #10969, were I upgrade a couple of dependencies all at once which should silent any sbt complains.

@ennru
Copy link
Contributor

ennru commented Sep 7, 2021

scala-java8-compat 1.0.0 is considered bin-compatible with 0.9.1, even though it reads differently.

Akka added this explicit resolution akka/akka#30375 for it.

@mkurz
Copy link
Member

mkurz commented Jan 18, 2022

Finally, more than half a year of broken cron build 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants