Skip to content

scoverage runtime should not build with latest Scala 2.13.x due to SIP-51 #619

Open
@xuwei-k

Description

@xuwei-k

Describe the bug

build.sbt

scalaVersion := "2.13.13"

libraryDependencies += "org.scalatest" %% "scalatest-freespec" % "3.2.18" % Test

coverageEnabled := true

project/build.properties

sbt.version=1.10.0

project/plugins.sbt

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.12")

src/test/scala/Test1.scala

package example

class Test1 extends org.scalatest.freespec.AnyFreeSpec

sbt test result

[error] java.lang.RuntimeException: expected `scoverage-bug/scalaVersion` to be "2.13.14" or later,
[error] but found "2.13.13"; upgrade scalaVersion to fix the build.
[error] 
[error] to support backwards-only binary compatibility (SIP-51),
[error] the Scala 2.13 compiler cannot be older than scala-library on the
[error] dependency classpath.
[error] see `scoverage-bug/evicted` to know why scala-library 2.13.14 is getting pulled in.

note

Expected behavior

No response

What build tool are you using?

sbt

Version of scoverage

v2.1.1

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