io_prometheus_client does not implement protoreflect.ProtoMessage
after running "go get github.com/zmap/zgrab2"
I'm getting the following error:
go get github.com/zmap/zgrab2
# github.com/prometheus/common/expfmt
src/github.com/prometheus/common/expfmt/decode.go:89:38: cannot use v (variable of type *io_prometheus_client.MetricFamily) as type protoreflect.ProtoMessage in argument to pbutil.ReadDelimited:
*io_prometheus_client.MetricFamily does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
src/github.com/prometheus/common/expfmt/encode.go:120:40: cannot use v (variable of type *io_prometheus_client.MetricFamily) as type protoreflect.ProtoMessage in argument to pbutil.WriteDelimited:
*io_prometheus_client.MetricFamily does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
Installing it on Debian 10 go version go1.19.3 linux/amd64 $GOPATH is setup any help is highly appreciated
try to set:
go env -w GO111MODULE=auto
then give it a try - I had the similar issue, got fixed with this.
try to set:
go env -w GO111MODULE=auto
then give it a try - I had the similar issue, got fixed with this.
Thank you for the suggestion. It still gives me this error, but at least I was able to "make" it.
try to set: go env -w GO111MODULE=auto then give it a try - I had the similar issue, got fixed with this.
Thank you for the suggestion. It still gives me this error, but at least I was able to "make" it.
Got the same error even using the go env command. What was your solution?
Edit: btw, I just compiled the source.
I moved from Debian 10 to Ubuntu 22, and it worked without any issues.