Skip to content

Commit

Permalink
Fix sbt plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Aug 16, 2024
1 parent 38dee76 commit 151e5aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions project-builder/sbt/CommunityBuildPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,11 @@ object CommunityBuildPlugin extends AutoPlugin {
}
println(s"Compile scalacOptions: ${scalacOptions}")
val compileResult = eval(Compile / compile) match {
case EvalResult.Failure(reasons, evalTime) if reasons.exists { case ex: AssertionError =>
ex.getMessage.contains("overlapping patches") && scalacOptions.contains("-rewrite")
case EvalResult.Failure(reasons, _) if reasons.exists {
case ex: AssertionError =>
ex.getMessage.contains("overlapping patches") &&
scalacOptions.contains("-rewrite")
case _ => false
} =>
eval(Compile / compile)
case result => result
Expand Down

0 comments on commit 151e5aa

Please sign in to comment.