Skip to content

Commit ef15c39

Browse files
authored
Merge pull request #1073 from japgolly/topic/fixDownstreamTests
Fix downstream tests
2 parents a705074 + 338572c commit ef15c39

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

downstream-tests/build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ def scalacCommonFlags: Seq[String] = Seq(
1414
"-language:higherKinds",
1515
"-language:existentials",
1616
"-unchecked",
17+
"-Wconf:msg=may.not.be.exhaustive:e", // Make non-exhaustive matches errors instead of warnings
18+
"-Wconf:msg=Reference.to.uninitialized.value:e", // Make uninitialised value calls errors instead of warnings
19+
"-Wconf:msg=macrotask:s", // stfu about macrotasks
1720
)
1821

1922
def scalac2Flags = Seq(
20-
"-Wconf:msg=may.not.be.exhaustive:e", // Make non-exhaustive matches errors instead of warnings
21-
"-Wconf:msg=Reference.to.uninitialized.value:e", // Make uninitialised value calls errors instead of warnings
2223
"-Wunused:explicits", // Warn if an explicit parameter is unused.
2324
"-Wunused:implicits", // Warn if an implicit parameter is unused.
2425
"-Wunused:imports", // Warn if an import selector is not referenced.

downstream-tests/version.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../library/version.sbt

library/version.sbt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Remove timestamp from SNAPSHOT versions
2+
ThisBuild / version := {
3+
val v = (ThisBuild / version).value
4+
v.replaceFirst("""\+\d{8}-\d{4}(?=-SNAPSHOT)""", "")
5+
}

0 commit comments

Comments
 (0)