From b102864d3e65543475f8f942c74dedc3f0f76b15 Mon Sep 17 00:00:00 2001 From: Gerrit Date: Wed, 13 Sep 2023 13:37:53 +0200 Subject: [PATCH] For build date use Go-compatible RFC3339 date format. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fc881c0..a63f895 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ BACKUP_PROVIDER := $(or ${BACKUP_PROVIDER},local) SHA := $(shell git rev-parse --short=8 HEAD) GITVERSION := $(shell git describe --long --all) -BUILDDATE := $(shell date --rfc-3339=seconds) +# gnu date format iso-8601 is parsable with Go RFC3339 +BUILDDATE := $(shell date --iso-8601=seconds) VERSION := $(or ${VERSION},$(shell git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD)) GO111MODULE := on