Open DevYves89 opened 1 year ago
It appears that 'go get' is no longer supported due to changes with golang.
The replacement command would be 'go install' which would replace both get & build.
e.g.
go install github.com/griesbacher/nagflux@latest
Unfortunately, this fails for me with the below error due to changes to prometheus.
go/pkg/mod/github.com/griesbacher/nagflux@v0.4.1/statistics/prometheus.go:110:39: undefined: prometheus.Handler
My understanding is that this line now needs to read promhttp.Handler not prometheus.Handler
Also, the import statement in this go file needs editing to include the prometheus promhttp module.
I have been unable to get this working as I have little experience with go projects.
It appears that 'go get' is no longer supported due to changes with golang.
The replacement command would be 'go install' which would replace both get & build.
e.g.
go install github.com/griesbacher/nagflux@latest
Unfortunately, this fails for me with the below error due to changes to prometheus.
go/pkg/mod/github.com/griesbacher/nagflux@v0.4.1/statistics/prometheus.go:110:39: undefined: prometheus.Handler
My understanding is that this line now needs to read promhttp.Handler not prometheus.Handler
Also, the import statement in this go file needs editing to include the prometheus promhttp module.
I have been unable to get this working as I have little experience with go projects.