prometheus-node-exporter: fix version info (#126722)
Closes #126359 (cherry picked from commit ad5830098f6add9a4fae2b0fe01afcd374292eaa) Co-authored-by: Maximilian Bosch <maximilian@mbosch.me>
This commit is contained in:
parent
856dc82a7f
commit
fe67150321
@ -23,8 +23,12 @@ buildGoModule rec {
|
||||
goPackagePath = "github.com/prometheus/node_exporter";
|
||||
in ''
|
||||
-ldflags=
|
||||
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Version=${version}
|
||||
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Revision=${rev}
|
||||
-s -w
|
||||
-X github.com/prometheus/common/version.Version=${version}
|
||||
-X github.com/prometheus/common/version.Revision=${rev}
|
||||
-X github.com/prometheus/common/version.Branch=unknown
|
||||
-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs
|
||||
-X github.com/prometheus/common/version.BuildDate=unknown
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) node; };
|
||||
|
Loading…
x
Reference in New Issue
Block a user