Skip to content

Commit 2254d12

Browse files
author
Stefano Torresi
committed
change ldflag in rpm spec according to latest changes
1 parent 7a9eba3 commit 2254d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/obs/prometheus-ha_cluster_exporter/prometheus-ha_cluster_exporter.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Prometheus exporter for Pacemaker HA clusters metrics
5151
export CGO_ENABLED=0
5252
go build -mod=vendor \
5353
-buildmode=pie \
54-
-ldflags="-s -w -X main.version=%{version}" \
54+
-ldflags="-s -w -X github.com/prometheus/common/version.Version=%{version}" \
5555
-o %{shortname}
5656

5757
%install

0 commit comments

Comments
 (0)