aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/tools/build-managers/bazel/java-test.nix
diff options
context:
space:
mode:
authorGuillaume Bouchard <guillaume.bouchard@tweag.io>2019-08-30 17:05:26 +0200
committerProfpatsch <mail@profpatsch.de>2019-09-03 13:12:53 +0200
commit67904dccbb0dfc01c9f8d242db6302cbdfcdb195 (patch)
tree7f190428d53a314f0141ac91385bc7ce9d037578 /pkgs/development/tools/build-managers/bazel/java-test.nix
parent0b768764aee4cce0e916f16bad2a555a8cd170c3 (diff)
bazel: 0.28.1 -> 0.29.0
- Upgraded dependencies - dependencies script upgraded to take into account new WORKSPACE rules - Tests now depends on the `distdir` Runtime bazel now also depends on the `distdir` setting which appears in the global configuration file. This increases the bazel closure size by 85 MO for stuffs which can normally be downloaded at runtime by bazel. However, any invocation of `buildBazelPackage` (such as in `bazel-watcher`) may fail in nix sandbox if theses files are not available at runtime. If this overhead is too important, we may later evolve to a finer grained solution, where buildBazelPackage declares the list of necessary dependencies.
Diffstat (limited to 'pkgs/development/tools/build-managers/bazel/java-test.nix')
-rw-r--r--pkgs/development/tools/build-managers/bazel/java-test.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/bazel/java-test.nix b/pkgs/development/tools/build-managers/bazel/java-test.nix
index 5f780a795e3..30b957eb5e3 100644
--- a/pkgs/development/tools/build-managers/bazel/java-test.nix
+++ b/pkgs/development/tools/build-managers/bazel/java-test.nix
@@ -9,6 +9,7 @@
, runtimeShell
, writeScript
, writeText
+, distDir
}:
let
@@ -44,6 +45,7 @@ let
bazelScript = ''
${bazel}/bin/bazel \
run \
+ --distdir=${distDir} \
--host_javabase='@local_jdk//:jdk' \
--java_toolchain='@bazel_tools//tools/jdk:toolchain_hostjdk8' \
--javabase='@local_jdk//:jdk' \