File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/scala/higherkindness/rules_scala/workers/zinc/compile Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ load("//rules:scalafmt.bzl", "scala_format_test")
4
4
scala_binary (
5
5
name = "compile" ,
6
6
srcs = glob (["**/*.scala" ]),
7
+ # Per the worker protocol, workers must not write outside of the sandbox:
8
+ # https://bazel.build/remote/multiplex#multiplex_sandboxing
9
+ #
10
+ # Since Zinc writes temporary files to the default temporary directory, we override it to be `.` instead of `/tmp`.
11
+ # Normally, we'd use the sandbox directory provided in the work request, but that won't work because the default
12
+ # temporary directory is set globally, whereas work requests can be processed in parallel.
13
+ jvm_flags = ["-Djava.io.tmpdir=." ],
7
14
main_class = "higherkindness.rules_scala.workers.zinc.compile.ZincRunner" ,
8
15
scala_toolchain_name = "annex_bootstrap_2_13" ,
9
16
visibility = ["//visibility:public" ],
You can’t perform that action at this time.
0 commit comments