fullstorydev / grpchan

Channels for gRPC: custom transports
MIT License
204 stars 23 forks source link

Error using protoc-gen-grpchan "invalid package name: """ #39

Closed MatthewDolan closed 4 years ago

MatthewDolan commented 4 years ago

I recently installed and ran protoc-gen-grpchan against all of my local proto files. It was successful and appears to have generated valid files, but I received the following error message during generation.

Error parsing file:  FILENAME:6:8: could not import github.com/fullstorydev/grpchan (invalid package name: "")

I have ignored it for now because it appears to be working correctly, but is this a known error message? Is there something wrong with my proto files or is grpchan throwing an incorrect error?

MatthewDolan commented 4 years ago

I discovered my issue. When I installed protoc-gen-grpchan, the dependency system (dep) pruned the github.com/fullstorydev/grpchan package because it wasn't needed. Then I generated the files and protoc-gen-grpchan couldn't find the package because it had been pruned. But after re-running dep, I was able to rebuild the files without an issue.

Thanks.