From 2254d12ec6c6c6798a65dcd6ad99baa0a1fc3961 Mon Sep 17 00:00:00 2001 From: Stefano Torresi Date: Tue, 24 May 2022 17:18:47 +0200 Subject: [PATCH] change ldflag in rpm spec according to latest changes --- .../prometheus-ha_cluster_exporter.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/obs/prometheus-ha_cluster_exporter/prometheus-ha_cluster_exporter.spec b/packaging/obs/prometheus-ha_cluster_exporter/prometheus-ha_cluster_exporter.spec index a5f95b2..4a7c724 100644 --- a/packaging/obs/prometheus-ha_cluster_exporter/prometheus-ha_cluster_exporter.spec +++ b/packaging/obs/prometheus-ha_cluster_exporter/prometheus-ha_cluster_exporter.spec @@ -51,7 +51,7 @@ Prometheus exporter for Pacemaker HA clusters metrics export CGO_ENABLED=0 go build -mod=vendor \ -buildmode=pie \ - -ldflags="-s -w -X main.version=%{version}" \ + -ldflags="-s -w -X github.com/prometheus/common/version.Version=%{version}" \ -o %{shortname} %install