aboutsummaryrefslogtreecommitdiffhomepage
path: root/WORKSPACE
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2018-05-24 03:35:42 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-24 03:37:17 -0700
commit3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502 (patch)
tree95365e802fa4f844a231f8502840a6f3ad1f9b0a /WORKSPACE
parent72075bf94cb2dc1bee8fa785767468c8bb6a240c (diff)
distfile: pack the archives needed later in the build
...and point --experimental_distdir there, so that offline builds are again possible out of the distribution archive. Related #5175. Fixes #5202. To be cherry-picked for #5056. Change-Id: I634296e9d83e4e18ed966b42f35acc63061259d9 PiperOrigin-RevId: 197866998
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE15
1 files changed, 15 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index bcdce0caf7..a0669072cb 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -99,6 +99,21 @@ http_archive(
strip_prefix = "desugar_jdk_libs-f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd",
)
+load("//:distdir.bzl", "distdir_tar")
+distdir_tar(
+ name = "additional_distfiles",
+ dirname = "derived/distdir",
+ archives = ["f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip"],
+ urls = {
+ "f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip" :
+ ["https://github.com/google/desugar_jdk_libs/archive/f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip"],
+ },
+ sha256 = {
+ "f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip" :
+ "c80f3f3d442d8a6ca7adc83f90ecd638c3864087fdd6787ffac070b6f1cc8f9b",
+ },
+)
+
# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
http_file(
name = "openjdk_linux",