scoverage / scalac-scoverage-plugin

Scoverage Scala Code Coverage Core Libs
https://github.com/scoverage
Apache License 2.0
423 stars 126 forks source link

scoverage runtime should not build with Scala 2.13.14 due to SIP-51 #619

Open xuwei-k opened 1 month ago

xuwei-k commented 1 month ago

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