Skip to content

Commit a815926

Browse files
author
Blaine Freestone
committed
!fixup add -sourceroot
1 parent 75318c7 commit a815926

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/main/scala/higherkindness/rules_scala/workers/zinc/compile/FilteredSetup.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ object FilteredSetup {
1818

1919
def getFilteredSetup(setup: MiniSetup): MiniSetup = {
2020
val options = setup.options()
21-
2221
// Filter out the -sourceroot option and its value
2322
val filteredScalacOptions = {
2423
val originalOptions = options.scalacOptions()
@@ -39,7 +38,6 @@ object FilteredSetup {
3938

4039
// Create new CompileOptions with filtered scalac options
4140
val newOptions = options.withScalacOptions(filteredScalacOptions)
42-
4341
// Create new MiniSetup with filtered options
4442
setup.withOptions(newOptions)
4543
}

src/main/scala/higherkindness/rules_scala/workers/zinc/compile/ZincRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ object ZincRunner extends WorkerMain[ZincRunnerWorkerConfig] {
216216
scalaInstance.actualVersion.startsWith("3")
217217

218218
val scalacOptions =
219-
workRequest.plugins.view.map(p => s"-Xplugin:$p").toArray ++
219+
workRequest.plugins.view.map(p => s"-Xplugin:$p").toArray ++
220220
workRequest.compilerOptions ++
221221
workRequest.compilerOptionsReferencingPaths.toArray ++
222222
(if (shouldIncludeSourceRoot)

0 commit comments

Comments
 (0)