[arch-commits] Commit in prometheus/trunk (PKGBUILD)

Johannes Löthberg demize at archlinux.org
Wed Apr 24 21:45:55 UTC 2019


    Date: Wednesday, April 24, 2019 @ 21:45:54
  Author: demize
Revision: 352100

Use the same BuildDate format as upstream

Modified:
  prometheus/trunk/PKGBUILD

----------+
 PKGBUILD |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-24 21:39:23 UTC (rev 352099)
+++ PKGBUILD	2019-04-24 21:45:54 UTC (rev 352100)
@@ -30,7 +30,7 @@
     -X github.com/prometheus/common/version.Revision=$pkgver \
     -X github.com/prometheus/common/version.Branch=tarball \
     -X github.com/prometheus/common/version.BuildUser=someone at builder \
-    -X github.com/prometheus/common/version.BuildDate=$SOURCE_DATE_EPOCH"
+    -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)"
 
   go build \
     -gcflags "all=-trimpath=$PWD" \


More information about the arch-commits mailing list