Skip to content

tester version conflict in scala 2.12 but not 2.11. #1229

@Readon

Description

@Readon

I am trying on update the SpinalWorkshop and SpinalTemplateSbt to depends on spinal.tester only but import scalatest directly.
So I add below line into build.sbt

val spinalTester = "com.github.spinalhdl" %% "spinalhdl-tester" % spinalVersion % "test"

it works when I use scala 2.11 as default scala version.

However, when I switched scalaVersion to 2.12, the sbt test would report error that

(update) 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.0.6
[error]             +- org.scalatest:scalatest-core_2.12:3.2.14           (depends on 2.1.0)
[error]             +- org.scala-lang:scala-compiler:2.12.16              (depends on 1.0.6)

Where the "org.scala:scalatest-core_2.12:3.2.14" package is required by spinalhdl-tester for testing.
It means that package "org.scala:scalatest-core_2.11:3.2.14" do not have this constraints.

I have also checked that it seems that we need to depend on old package of scalatest to support scala 2.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions