Skip to content

False positive in the inconsistent duplicate warnings #1933

@dwijnand

Description

@dwijnand

steps

  1. Given sbt.version=0.13.8, setup build.sbt as:
scalaVersion := "2.11.6"
libraryDependencies += "org.scoverage" %% "scalac-scoverage-runtime" % "1.0.4" % "provided"
  1. Invoke updateClassifiers

problem

[warn] Multiple dependencies with the same organization/name but different versions. To avoid conflict, pick one version:
[warn]  * org.scala-lang:scala-library:(2.11.6, 2.11.4)

expectation

No warnings.

note

Original report below:

@fommil indicates on the mailing lists (and @sslavic as well) that there seems to be a false positive in the inconsistent duplicate warnings.

From Sam's post:

Since upgrading to sbt 0.13.8 I get a lot of errors of this nature (i.e. same thing repeated over and over):

[warn] Multiple dependencies with the same organization/name but different versions. To avoid conflict, pick one version:
[warn]  * org.scala-lang:scala-library:(2.11.6, 2.11.4)
[warn]  * org.scala-lang.modules:scala-parser-combinators_2.11:(1.0.1, 1.0.2, 1.0.3)
[warn]  * org.scala-lang.modules:scala-xml_2.11:(1.0.1, 1.0.3)

I'm actually depending on explicit versions of all these libraries so I believe this is a bug in the warning code.

Running gen-ensime on the ensime-server build will reproduce the problem.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions