From 4d09a1de6a60c6f90cc88978151bcde83c8000d4 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Tue, 21 Nov 2017 04:09:16 -0800 Subject: SOURCE_DATE_EPOCH environment variable override the timestamp This is applying the version 1.1 of the specification (https://reproducible-builds.org/specs/source-date-epoch/) where the only timestamp that Bazel puts in the final targets is overridden by the value of SOURCE_DATE_EPOCH. This change also remove the legacy SOURCE_DATE_EPOCH handling which wasn't really following the spec. Note that Bazel itself tries hard to remove all timestamps from intermediary binaries and overridde SOURCE_DATE_EPOCH in most action, which is a not according to the version 1.0 of the spec but according to the expected change for version 1.1. RELNOTES: SOURCE_DATE_EPOCH (https://reproducible-builds.org/specs/source-date-epoch/) can be used to override the timestamp used for stamped target (when using --stamp). Fixes #2240. Change-Id: I074e7905fa6745cc706f7391340aeae9188909ca PiperOrigin-RevId: 176489717 --- scripts/bootstrap/bootstrap.sh | 3 --- 1 file changed, 3 deletions(-) (limited to 'scripts/bootstrap') diff --git a/scripts/bootstrap/bootstrap.sh b/scripts/bootstrap/bootstrap.sh index 3f8ba74da2..57b5332863 100755 --- a/scripts/bootstrap/bootstrap.sh +++ b/scripts/bootstrap/bootstrap.sh @@ -27,9 +27,6 @@ EMBED_LABEL_ARG=() if [ -n "${EMBED_LABEL}" ]; then EMBED_LABEL_ARG=(--stamp --embed_label "${EMBED_LABEL}") - if [ -n "${SOURCE_DATE_EPOCH}" ]; then - EMBED_LABEL_ARG+=(--experimental_embed_timestamp_epoch "${SOURCE_DATE_EPOCH}") - fi fi : ${JAVA_VERSION:="1.8"} -- cgit v1.2.3