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

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

Open
xuwei-k opened this issue May 11, 2024 · 0 comments
Open

Comments

@xuwei-k
Copy link
Contributor

xuwei-k commented May 11, 2024

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

@xuwei-k xuwei-k changed the title scoverage runtime should not build with Scala 2.13.14 due to SIP-51 scoverage runtime should not build with latest Scala 2.13.x due to SIP-51 Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant