aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/package-bazel.sh
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-11-10 15:28:00 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2015-11-11 13:06:37 +0000
commitc4e74d1e531b06d2c8be2fd7c265a14abbd2fc4f (patch)
treeb4e943736e788db81088743bc32b271e6f8f91dd /src/package-bazel.sh
parent8a3622e2595a6e728ed52c0a2d80c75e46916078 (diff)
Make building Bazel more hermetic.
The -X option removes UID/GID information from the zip file, which of course is non-hermetic. There is still some weirdness with install_base_key, but I couldn't figure out what that is: the files that are checksummed are always the same and they are in the same order. -- MOS_MIGRATED_REVID=107484288
Diffstat (limited to 'src/package-bazel.sh')
-rwxr-xr-xsrc/package-bazel.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package-bazel.sh b/src/package-bazel.sh
index 9181d812d2..27d0f5e06c 100755
--- a/src/package-bazel.sh
+++ b/src/package-bazel.sh
@@ -42,4 +42,4 @@ if [[ ${EMBEDDED_TOOLS} != "" ]]; then
(cd ${PACKAGE_DIR}/embedded_tools && unzip -q ${WORKDIR}/${EMBEDDED_TOOLS})
fi
-(cd ${PACKAGE_DIR}; zip -qrD ${WORKDIR}/${OUT} *)
+(cd ${PACKAGE_DIR} && find . -type f | sort | zip -qDX@ ${WORKDIR}/${OUT})