Bundled JDK changes for the release process. This is a fixed version
that should not break CI this time...
- Make the default Bazel release artifacts include the bundled JDK.
- Create additional Bazel release artifacts without a bundled JDK.
Tested by running "bazel build //scripts/..." in a clean checkout and
one with this patch in, then diffing the entire bazel-out folder and
manually inspecting the resulting files (zips, tar.gz, deb, rpm) to make
sure that they contain the right files. Looks all good now, so let's try
again.
PiperOrigin-RevId: 154544164
diff --git a/scripts/packages/self_extract_binary.bzl b/scripts/packages/self_extract_binary.bzl
index 425a203..75f1927 100644
--- a/scripts/packages/self_extract_binary.bzl
+++ b/scripts/packages/self_extract_binary.bzl
@@ -75,18 +75,21 @@
self_extract_binary = rule(
_self_extract_binary,
- executable = True,
attrs = {
"launcher": attr.label(
- mandatory=True,
- allow_files=True,
- single_file=True),
- "empty_files": attr.string_list(default=[]),
+ mandatory = True,
+ allow_files = True,
+ single_file = True,
+ ),
+ "empty_files": attr.string_list(default = []),
"resources": attr.label_list(
- default=[],
- allow_files=True),
+ default = [],
+ allow_files = True,
+ ),
"flatten_resources": attr.label_list(
- default=[],
- allow_files=True),
- },
- )
+ default = [],
+ allow_files = True,
+ ),
+ },
+ executable = True,
+)