Closed flyucc closed 5 years ago
compiling source go build -ldflags "-s -w -X main.version=2.6.2-2-g314592e" -o build/lora-gateway-bridge cmd/lora-gateway-bridge/main.go
internal/metrics/prometheus.go:19:10: undefined: prometheus.MustRegisterOrGet internal/metrics/prometheus.go:43:12: undefined: prometheus.MustRegisterOrGet make: *** [build] Error 2
[CHANGE] Removed deprecated RegisterOrGet and MustRegisterOrGet. #247
https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md
Compiling log out :
compiling source go build -ldflags "-s -w -X main.version=2.6.2-2-g314592e" -o build/lora-gateway-bridge cmd/lora-gateway-bridge/main.go
github.com/brocaar/lora-gateway-bridge/internal/metrics
internal/metrics/prometheus.go:19:10: undefined: prometheus.MustRegisterOrGet internal/metrics/prometheus.go:43:12: undefined: prometheus.MustRegisterOrGet make: *** [build] Error 2
0.9.0 / 2018-10-15
[CHANGE] Removed deprecated RegisterOrGet and MustRegisterOrGet. #247
link:
https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md