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

Depending on specific dependency scala version will bring in wrong transitive dependency #6269

Open
tgodzik opened this issue Jan 19, 2021 · 2 comments

Comments

@tgodzik
Copy link

tgodzik commented Jan 19, 2021

steps

build.sbt:

lazy val root = (project in file(".")).settings(
  inThisBuild(
    List(
      organization := "com.example",
      scalaVersion := "2.12.11"
    )
  )
)

libraryDependencies += "org.scalameta" % "mdoc_2.12.12" % "2.2.16"

problem

mdoc_2.12.12 depends on mdoc-runtime_2.12.12, but it seems sbt (or rather I think coursier) tries to bring in mdoc-runtime_2.12.11

[error] stack trace is suppressed; run last update for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.scalameta:mdoc-runtime_2.12.11:2.2.16
[error]   Not found
[error]   Not found
[error]   not found: /home/tgodzik/.ivy2/local/org.scalameta/mdoc-runtime_2.12.11/2.2.16/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/scalameta/mdoc-runtime_2.12.11/2.2.16/mdoc-runtime_2.12.11-2.2.16.pom
[error] Total time: 1 s, completed Jan 19, 2021 7:20:43 PM

expectation

Should compile and resolve proper transitive dependency.

notes

Works with ThisBuild / useCoursier := false

@eed3si9n
Copy link
Member

@tgodzik Thanks for the report! If you suspect this is a Coursier issue, could you report to coursier/coursier as well plz?

@tgodzik
Copy link
Author

tgodzik commented Jan 20, 2021

@tgodzik Thanks for the report! If you suspect this is a Coursier issue, could you report to coursier/coursier as well plz?

Reported here: coursier/coursier#1950

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

No branches or pull requests

2 participants