Skip to content

Commit d1e4873

Browse files
committed
Only test scodec with experimental compiler
1 parent 182861b commit d1e4873

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ lazy val compilerVersion: String =
1010
val file = communitybuildDir.resolve("scala3-bootstrapped.version")
1111
new String(Files.readAllBytes(file), UTF_8)
1212

13+
lazy val isExperimentalCompiler: Boolean =
14+
compilerVersion.contains("SNAPSHOT") || compilerVersion.contains("NIGHTLY")
15+
1316
lazy val sbtPluginFilePath: String =
1417
// Workaround for https://github.com/sbt/sbt/issues/4395
1518
new File(sys.props("user.home") + "/.sbt/1.0/plugins").mkdirs()

community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
116116
@Test def disciplineSpecs2 = projects.disciplineSpecs2.run()
117117
@Test def munit = projects.munit.run()
118118
@Test def perspective = projects.perspective.run()
119-
@Test def scodec = projects.scodec.run()
119+
@Test def scodec = if (isExperimentalCompiler) projects.scodec.run()
120120
@Test def scodecBits = projects.scodecBits.run()
121121
@Test def simulacrumScalafixAnnotations = projects.simulacrumScalafixAnnotations.run()
122122
end CommunityBuildTestB

0 commit comments

Comments
 (0)