From 839fd799a18c70909ecdaeb031ccdd2b73b0df8f Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 8 Apr 2016 14:21:47 +0200 Subject: [PATCH] Use runtime.Version() instead of injected version --- version/info.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/version/info.go b/version/info.go index 890ebf51..5d9c7006 100644 --- a/version/info.go +++ b/version/info.go @@ -13,7 +13,11 @@ package version -import "github.com/prometheus/client_golang/prometheus" +import ( + "runtime" + + "github.com/prometheus/client_golang/prometheus" +) // Build information. Populated at build-time. var ( @@ -22,7 +26,7 @@ var ( Branch string BuildUser string BuildDate string - GoVersion string + GoVersion = runtime.Version() ) // Map provides the iterable version information.