From 13ceaf66aaba8412eecd6e0e8c54ab1712729d24 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Thu, 17 May 2018 00:05:53 +0200 Subject: [PATCH] prometheus: correctly set version information (#40617) The way prometheus expects the version to be set is not what was currently set. --- pkgs/servers/monitoring/prometheus/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/monitoring/prometheus/default.nix b/pkgs/servers/monitoring/prometheus/default.nix index 3287bc6f2583..b71d9b8e58b8 100644 --- a/pkgs/servers/monitoring/prometheus/default.nix +++ b/pkgs/servers/monitoring/prometheus/default.nix @@ -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