mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 06:59:40 -08:00
Simplify runtime version code more
It's no longer a build-time injected variable (as the comment above its block indicates), so move it to the map below.
This commit is contained in:
parent
2c19334715
commit
17ece74511
|
@ -26,7 +26,6 @@ var (
|
||||||
Branch string
|
Branch string
|
||||||
BuildUser string
|
BuildUser string
|
||||||
BuildDate string
|
BuildDate string
|
||||||
GoVersion = runtime.Version()
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Map provides the iterable version information.
|
// Map provides the iterable version information.
|
||||||
|
@ -36,7 +35,7 @@ var Map = map[string]string{
|
||||||
"branch": Branch,
|
"branch": Branch,
|
||||||
"buildUser": BuildUser,
|
"buildUser": BuildUser,
|
||||||
"buildDate": BuildDate,
|
"buildDate": BuildDate,
|
||||||
"goVersion": GoVersion,
|
"goVersion": runtime.Version(),
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in a new issue