From 3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 24 May 2018 03:35:42 -0700 Subject: 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 --- WORKSPACE | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'WORKSPACE') 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", -- cgit v1.2.3