Merge pull request #296 from prometheus/use-runtime-version

Use runtime.Version() instead of injected version
This commit is contained in:
Julius Volz 2016-04-08 14:28:15 +02:00
commit 3292c278fe
1 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,11 @@
package version package version
import "github.com/prometheus/client_golang/prometheus" import (
"runtime"
"github.com/prometheus/client_golang/prometheus"
)
// Build information. Populated at build-time. // Build information. Populated at build-time.
var ( var (
@ -22,7 +26,7 @@ var (
Branch string Branch string
BuildUser string BuildUser string
BuildDate string BuildDate string
GoVersion string GoVersion = runtime.Version()
) )
// Map provides the iterable version information. // Map provides the iterable version information.