mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -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
|
||||
BuildUser string
|
||||
BuildDate string
|
||||
GoVersion = runtime.Version()
|
||||
)
|
||||
|
||||
// Map provides the iterable version information.
|
||||
|
@ -36,7 +35,7 @@ var Map = map[string]string{
|
|||
"branch": Branch,
|
||||
"buildUser": BuildUser,
|
||||
"buildDate": BuildDate,
|
||||
"goVersion": GoVersion,
|
||||
"goVersion": runtime.Version(),
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Reference in a new issue