lichess-org / lila-search

Keep elasticsearch threads out of your web facing app, kids
http://lichess.org
GNU Affero General Public License v3.0
43 stars 22 forks source link

Dependency versions #134

Closed ddugovic closed 1 year ago

ddugovic commented 1 year ago

I thought this is the module which serves Advanced Search at https://lichess.org/games/search . Lishogi is considering the same issue as https://github.com/lichess-org/lila/issues/6969 (however I lack a DB seed for Lishogi so I'm trying to address that issue in Lichess first).

Executing sbt run -v, I can't get this to resolve: https://github.com/lichess-org/lila-search/blob/36ff9c970008488aa9eee527211b560f38128ed3/build.sbt#L61

This happens even after I work around other errors (by copying plugin versions from lila and/or lila-fishnet), e.g.:

[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-xml_2.12:2.1.0 (early-semver) is selected over {1.2.0, 1.1.1}
[error]             +- org.scala-lang:scala-compiler:2.12.17              (depends on 2.1.0)
[error]             +- com.typesafe.sbt:sbt-native-packager:1.5.2 (scalaVersion=2.12, sbtVersion=1.0) (depends on 1.1.1)
[error]             +- com.typesafe.play:twirl-api_2.12:1.5.1             (depends on 1.2.0)
ronfromhp commented 1 year ago
[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-xml_2.12:2.1.0 (early-semver) is selected over {1.2.0, 1.1.1}
[error]             +- org.scala-lang:scala-compiler:2.12.17              (depends on 2.1.0)
[error]             +- com.typesafe.sbt:sbt-native-packager:1.5.2 (scalaVersion=2.12, sbtVersion=1.0) (depends on 1.1.1)
[error]             +- com.typesafe.play:twirl-api_2.12:1.5.1             (depends on 1.2.0)

Did you find any resolution for this? Can you share the solution with me in that case? I'm getting the same errors even after the latest commit

ornicar commented 1 year ago

I added a github action to confirm the bug https://github.com/lichess-org/lila-search/actions/runs/3873098249/jobs/6602719923

but for some reason I can't reproduce it locally, it just compiles fine here

ornicar commented 1 year ago

got it https://github.com/lichess-org/lila-search/actions/runs/3873158870/jobs/6602853796