Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors #477

Open
Montana opened this issue Oct 26, 2020 · 2 comments
Open

Build errors #477

Montana opened this issue Oct 26, 2020 · 2 comments

Comments

@Montana
Copy link

Montana commented Oct 26, 2020

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!

@alecgarza96
Copy link

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

@Montana
Copy link
Author

Montana commented Feb 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants