Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
prometheus-json-exporter


Commits:
6dc47834 by Jelle van der Waa at 2024-11-11T21:19:11+01:00
Make package reproducible

Correctly pass SOURCE_DATE_EPOCH.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = prometheus-json-exporter
        pkgdesc = Prometheus exporter which scrapes remote JSON by JSONPath
        pkgver = 0.6.0
-       pkgrel = 2
+       pkgrel = 3
        url = https://github.com/prometheus-community/json_exporter
        arch = x86_64
        license = Apache-2.0


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 pkgname=prometheus-json-exporter
 _pkgname=json_exporter
 pkgver=0.6.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Prometheus exporter which scrapes remote JSON by JSONPath"
 arch=('x86_64')
 url="https://github.com/prometheus-community/json_exporter";
@@ -42,7 +42,7 @@ build() {
     -X github.com/prometheus/common/version.Revision=$pkgver \
     -X github.com/prometheus/common/version.Branch=tarball \
     -X github.com/prometheus/common/version.BuildUser=someone@builder \
-    -X github.com/prometheus/common/version.BuildDate=$(date 
-d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
+    -X github.com/prometheus/common/version.BuildDate=$(date -u 
'+%Y%m%d-%H:%M:%S' --date=@${SOURCE_DATE_EPOCH})" \
     -o build .
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/prometheus-json-exporter/-/commit/6dc47834527e5dd335ade8b6defbff2550cea09f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/prometheus-json-exporter/-/commit/6dc47834527e5dd335ade8b6defbff2550cea09f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to