Skip to content

Commit 9b7a75d

Browse files
committed
Make build-module depend on test-runner compiled with the same scala version
1 parent 852d8f9 commit 9b7a75d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.sc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ object directives extends Directives
7575
object core extends Core
7676
object `build-module` extends Build
7777
object runner extends Cross[Runner](Scala.runnerScalaVersions)
78-
object `test-runner` extends Cross[TestRunner](Scala.runnerScalaVersions)
78+
object `test-runner` extends Cross[TestRunner](Scala.runnerScalaVersions :+ Scala.scala3)
7979
object `tasty-lib` extends Cross[TastyLib](Scala.all)
8080
// Runtime classes used within native image on Scala 3 replacing runtime from Scala
8181
object `scala3-runtime` extends Scala3Runtime
@@ -623,8 +623,7 @@ trait Build extends ScalaCliSbtModule with ScalaCliPublishModule with HasTests
623623
options,
624624
directives,
625625
`scala-cli-bsp`,
626-
// Depending on version compiled with Scala 3 pulls older stdlib
627-
`test-runner`(Scala.runnerScala3),
626+
`test-runner`(scalaVer),
628627
`tasty-lib`(scalaVer)
629628
)
630629
def scalacOptions = T {

0 commit comments

Comments
 (0)