prometheus: correctly set version information (#40617)
The way prometheus expects the version to be set is not what was currently set.
This commit is contained in:
parent
5f00237eb6
commit
13ceaf66aa
@ -19,7 +19,7 @@ let
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
buildFlagsArray = let t = "${goPackagePath}/version"; in ''
|
buildFlagsArray = let t = "${goPackagePath}/vendor/github.com/prometheus/common/version"; in ''
|
||||||
-ldflags=
|
-ldflags=
|
||||||
-X ${t}.Version=${version}
|
-X ${t}.Version=${version}
|
||||||
-X ${t}.Revision=unknown
|
-X ${t}.Revision=unknown
|
||||||
|
Loading…
Reference in New Issue
Block a user