Skip to content

Commit 044bbb2

Browse files
committed
Do not allow fatal errors in fs2
1 parent c1a5df2 commit 044bbb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ object projects:
133133
s"""set $project/Compile/scalacOptions := ($project/Compile/scalacOptions).value.filterNot(opt => opt == "-release" || opt == "8")"""
134134
).mkString("; ")
135135

136+
private def removeFatalWarnings(projects: String*): String =
137+
projects.map(project =>
138+
s"""set $project/Compile/scalacOptions := ($project/Compile/scalacOptions).value.filterNot(opt => opt == "-Werror" || opt == "-Xfatal-warnings")"""
139+
).mkString("; ")
140+
136141
private def aggregateDoc(in: String)(projects: String*) =
137142
val tastyFiles =
138143
(in +: projects).map(p => s"($p/Compile/doc/dotty.tools.sbtplugin.DottyPlugin.autoImport.tastyFiles).value").mkString(" ++ ")
@@ -633,6 +638,7 @@ object projects:
633638
sbtTestCommand =
634639
List(
635640
removeRelease8("coreJVM", "coreJS"), // io/test currently fails JDK9+
641+
removeFatalWarnings("coreJVM", "coreJS"),
636642
"coreJVM/test; coreJS/test;"
637643
).mkString("; "),
638644
sbtPublishCommand = "coreJVM/publishLocal; coreJS/publishLocal",

0 commit comments

Comments
 (0)