mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-16 18:47:10 +00:00
Use runtime.Version() instead of injected version
This commit is contained in:
parent
93070012f9
commit
839fd799a1
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user