Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

31-grpc not working: undefined: proto.InternalMessageInfo #64

Open
trobert2 opened this issue May 11, 2018 · 0 comments
Open

31-grpc not working: undefined: proto.InternalMessageInfo #64

trobert2 opened this issue May 11, 2018 · 0 comments

Comments

@trobert2
Copy link

trobert2 commented May 11, 2018

Hello, I am using go version go1.10.2 darwin/amd64. Building the server works with the provided code.
The example isn't working after re-generating the pg.go file using:

 protoc -I . todo.proto --go_out=plugins=grpc:.

The error:

$ go build server/main.go
# github.com/campoy/justforfunc/31-grpc/todo
../todo/todo.pb.go:56:26: undefined: proto.InternalMessageInfo
../todo/todo.pb.go:101:30: undefined: proto.InternalMessageInfo
../todo/todo.pb.go:139:26: undefined: proto.InternalMessageInfo
../todo/todo.pb.go:176:26: undefined: proto.InternalMessageInfo

I have done this for the dependencies, although it is not very clear which ones to use:

 go get -u -v github.com/golang/protobuf/proto
 go get -u -v github.com/gogo/protobuf/proto

maybe use glide for the proejects in the future in order to clarify?

Is this related to this: https://groups.google.com/forum/#!topic/golang-nuts/F5xFHTfwRnY ?
if it is, how do we move past this?
Thanks

EDIT: Here is the regenerated code

https://gist.github.com/trobert2/d8eb11ba7f1cec92241ba4d079993852

@trobert2 trobert2 changed the title 31-grpc not working 31-grpc not working: undefined: proto.InternalMessageInfo May 11, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant