This is an automated email from the ASF dual-hosted git repository.
ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-web.git
The following commit(s) were added to refs/heads/master by this push:
new 24a3ee3 [YUNIKORN-2422] [ADDENDUM] Web: create reproducible binaries
24a3ee3 is described below
commit 24a3ee367da3624a81ba63c4fa3c71c521e7186d
Author: Craig Condit <[email protected]>
AuthorDate: Thu Feb 15 17:07:24 2024 -0600
[YUNIKORN-2422] [ADDENDUM] Web: create reproducible binaries
Fix: Test for .git directory before running git log
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 837ef52..86d5580 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ REPO=github.com/apache/yunikorn-web/pkg
# Build date - Use git commit, then cached build.date, finally current date
# This allows for reproducible builds as long as release tarball contains the
build.date file.
-DATE := $(shell TZ=UTC0 git --no-pager log -1 --date=iso8601-strict-local
--format=%cd 2>/dev/null || true)
+DATE := $(shell if [ -d "$(BASE_DIR)/.git" ]; then TZ=UTC0 git --no-pager log
-1 --date=iso8601-strict-local --format=%cd 2>/dev/null ; fi || true)
ifeq ($(DATE),)
DATE := $(shell cat "$(BASE_DIR)/build.date" 2>/dev/null || true)
endif
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]