compile error #523
Unanswered
lazy-wangxl
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You seem to have a vendor directory somewhere that interferes. Very generally, you should not require to run I would also recommend to run a recent version of Go. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to compile from the sources(stable), and i did like this:
`[root@localhost pushgateway]# go mod init
[root@localhost pushgateway]# go mod tidy
[root@localhost pushgateway]# make build`
but failed, error:
_go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
!! command failed: build -o /home/wangxl/WorkSpace/TMT/src/pushgateway/pushgateway -ldflags -X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.Version=0.3.1 -X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.Revision=602f856b0e840cbabc7e4893ea75cf3e9298af3e -X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.Branch=stable -X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.BuildUser=[email protected] -X github.com/prometheus/pushgateway/vendor/github.com/prometheus/common/version.BuildDate=20221220-02:27:24 -extldflags '-static' -a -tags netgo github.com/prometheus/pushgateway: exit status 1
make: *** [build] Error 1
_
Beta Was this translation helpful? Give feedback.
All reactions