From c4e74d1e531b06d2c8be2fd7c265a14abbd2fc4f Mon Sep 17 00:00:00 2001 From: Lukacs Berki Date: Tue, 10 Nov 2015 15:28:00 +0000 Subject: 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 --- src/package-bazel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/package-bazel.sh') 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}) -- cgit v1.2.3