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

io_prometheus_client does not implement protoreflect.ProtoMessage #362

Open
den78932 opened this issue Nov 2, 2022 · 4 comments
Open

io_prometheus_client does not implement protoreflect.ProtoMessage #362

den78932 opened this issue Nov 2, 2022 · 4 comments

Comments

@den78932
Copy link

den78932 commented Nov 2, 2022

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

@ali-encord
Copy link

try to set:

go env -w GO111MODULE=auto

then give it a try - I had the similar issue, got fixed with this.

@den78932
Copy link
Author

den78932 commented Nov 4, 2022

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.

@rf-peixoto
Copy link

rf-peixoto commented Mar 29, 2023

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.

@den78932
Copy link
Author

I moved from Debian 10 to Ubuntu 22, and it worked without any issues.

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

3 participants