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
Error when trying to install promtool #8480
Comments
Thank you. Promtool builds fine within out CI, so I think it might be in your local setup. Can you try with a released binary? You can get them at https://prometheus.io/download/ ; it is shipped with Prometheus. Alternatively, could you try to run:
which is the "official" way to build Prometheus. |
I got the same issue when building in docker with Dockerfile:
|
You have to make sure to be in Go-module mode. If you just build from the lastest state of all the dependencies, you'll run into the breaking change that was merged in prometheus/client_golang recently. For example, you could run
In general, it's recommended to use the released binaries published here. If you want to build things yourself, be prepared to run into some Go shenanigans. |
Using It should be mentioned that building |
Good catch. I created #8491 to address that. |
fixes the install_promtool command as suggested on prometheus/prometheus#8480
What did you do?
go get -v github.com/prometheus/prometheus/cmd/promtool
What did you expect to see?
promtool being installed.
What did you see instead? Under which circumstances?
Environment
Go version
go version go1.15.8 linux/amd64
System information:
Ubuntu 20.04.2 LTS
Linux 5.4.0-65-generic x86_64
The text was updated successfully, but these errors were encountered: