Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Error getting chat-with-rendezvous (proto.InternalMessageInfo) #11

Closed
Wei-1 opened this issue Sep 27, 2018 · 2 comments
Closed

Error getting chat-with-rendezvous (proto.InternalMessageInfo) #11

Wei-1 opened this issue Sep 27, 2018 · 2 comments

Comments

@Wei-1
Copy link

Wei-1 commented Sep 27, 2018

While running:

go get github.com/libp2p/go-libp2p-examples/chat-with-rendezvous

I encounter this error:

# github.com/libp2p/go-libp2p-record/pb
/Users/weichen/go/src/github.com/libp2p/go-libp2p-record/pb/record.pb.go:68:28: undefined: proto.InternalMessageInfo

Based on these issues:

grpc/grpc-go#2095
googleapis/go-genproto#77

The first thing that I should try is:

go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

But after getting the new proto and protoc-gen-go, I still get the same error.

Then I try to delete the current protobuf src dir based on this issue golang/protobuf#642

But apparently, it still doesn't help. (still get the same error while running the first script)

The current environment that I am using is go1.11, which is the latest version of Go already.

@upperwal
Copy link
Contributor

Best and fastest solution is to remove everything in GOPATH/src/ and run

go get -d github.com/libp2p/go-libp2p-examples/...

I tried

go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

with the same error.

or try removing everything from github.com/golang/protobuf and try running go get

@Wei-1
Copy link
Author

Wei-1 commented Sep 27, 2018

Delete the entire $GOPATH/src does solve the issue.
Thanks @upperwal

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

No branches or pull requests

2 participants