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:
Pascal Bach 2018-05-17 00:05:53 +02:00 committed by xeji
parent 5f00237eb6
commit 13ceaf66aa

View File

@ -19,7 +19,7 @@ let
doCheck = true;
buildFlagsArray = let t = "${goPackagePath}/version"; in ''
buildFlagsArray = let t = "${goPackagePath}/vendor/github.com/prometheus/common/version"; in ''
-ldflags=
-X ${t}.Version=${version}
-X ${t}.Revision=unknown