Skip to content

Commit 62a1b67

Browse files
author
Blaine Freestone
committed
add sourceroot flag with absolute root path of the sandbox worker in order to make the filepath relative in the tasty file
this should not invalidate the bazel cache every time because of the path mapping set in the bazel rule config
1 parent b7d7639 commit 62a1b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ object ZincRunner extends WorkerMain[ZincRunnerWorkerConfig] {
221221
.withScalacOptions(
222222
workRequest.plugins.view.map(p => s"-Xplugin:$p").toArray ++
223223
workRequest.compilerOptions ++
224-
workRequest.compilerOptionsReferencingPaths.toArray,
224+
workRequest.compilerOptionsReferencingPaths.toArray ++
225+
Array("--sourceroot", task.workDir.toAbsolutePath().toString)
225226
)
226227

227228
val compilers = {

0 commit comments

Comments
 (0)