unpoller: properly set version

Signed-off-by: Sergei Lukianov <me@slukjanov.name>
This commit is contained in:
Sergei Lukianov 2025-04-30 20:24:23 -07:00
parent 8fcb7a49e5
commit 54ed1bd4c0
No known key found for this signature in database

View file

@ -21,10 +21,7 @@ buildGoModule rec {
ldflags = [
"-w"
"-s"
"-X github.com/prometheus/common/version.Branch=master"
"-X github.com/prometheus/common/version.BuildDate=unknown"
"-X github.com/prometheus/common/version.Revision=${src.rev}"
"-X github.com/prometheus/common/version.Version=${version}-0"
"-X golift.io/version.Version=${version}"
];
passthru.tests = { inherit (nixosTests.prometheus-exporters) unpoller; };