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

Make the package reproducible

parent 2f9d392f
No related branches found
Tags 0.16.0-4
No related merge requests found
......@@ -2,7 +2,7 @@
pkgname=prometheus-blackbox-exporter
pkgver=0.16.0
pkgrel=3
pkgrel=4
pkgdesc="Allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP"
arch=('x86_64')
url="https://github.com/prometheus/blackbox_exporter"
......@@ -21,9 +21,10 @@ check() {
build() {
cd blackbox_exporter-$pkgver
go build \
-mod=vendor \
-gcflags "all=-trimpath=${PWD}" \
-asmflags "all=-trimpath=${PWD}" \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-extldflags ${LDFLAGS} \
-X github.com/prometheus/common/version.Version=$pkgver \
-X github.com/prometheus/common/version.Revision=$pkgver \
......
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