Skip to content
Snippets Groups Projects
Commit a07a90b4 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Make the package reproducible by passing the correct date

parent 18bc574e
No related branches found
Tags 0.21.0-1
No related merge requests found
......@@ -2,7 +2,7 @@
pkgname=prometheus-blackbox-exporter
pkgver=0.18.0
pkgrel=2
pkgrel=3
pkgdesc="Allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP"
arch=('x86_64')
url="https://github.com/prometheus/blackbox_exporter"
......@@ -30,7 +30,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 --date=@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
.
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment