gizmo icon indicating copy to clipboard operation
gizmo copied to clipboard

Build errors

Open Montana opened this issue 3 years ago • 2 comments

Even with using and trying to enforce:

[[override]]
  name = "github.com/prometheus/client_golang"
  version = "0.9.2"

I'm still getting errors:

../gizmo/server/simple_server.go:103:2: undefined: prometheus.InstrumentHandlerWithOpts
../gizmo/server/simple_server.go:123:3: undefined: prometheus.InstrumentHandler
../gizmo/server/simple_server.go:123:46: undefined: prometheus.UninstrumentedHandler

Any help would be greatly appreciated!

Montana avatar Oct 26 '20 23:10 Montana

Is this still an issue? What are the steps necessary to recreate?

alecgarza96 avatar Feb 25 '22 02:02 alecgarza96

Hey @alecgarza96,

I ended up fixing this in December 2020 by running my apps with dep instead go mod. I just had to override the Prometheus client to the pinned version by gizmo and worked well.

[[override]]
  name = "github.com/prometheus/client_golang"
  version = "0.9.2"

I appreciate the follow up.

Montana avatar Feb 25 '22 17:02 Montana