justforfunc
justforfunc copied to clipboard
31-grpc not working: undefined: proto.InternalMessageInfo
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