Skip to content

Commit dab5d9e

Browse files
authored
improvement: Use distinct on ScalacOpt (#3139)
I am still getting an issue with multiple same plugin options and my guess is that the distinct doesn't work, especially that it is hard to figure out what can actually be contained there. Moving distinct to the end should be a much safer option. Related to #2708
1 parent 3d2fa93 commit dab5d9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/build/src/main/scala/scala/build/Build.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,10 @@ object Build {
862862
)
863863
}
864864

865-
val pluginScalacOptions = scalaArtifacts.compilerPlugins.distinct.map {
865+
val pluginScalacOptions = scalaArtifacts.compilerPlugins.map {
866866
case (_, _, path) =>
867867
ScalacOpt(s"-Xplugin:$path")
868-
}
868+
}.distinct
869869

870870
val semanticDbTargetRootOptions: Seq[ScalacOpt] =
871871
(semanticDbTargetRoot match

0 commit comments

Comments
 (0)