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

What are the exact versions for protoc-gen-go? #2

Open
H-Shafiei opened this issue Apr 27, 2021 · 2 comments
Open

What are the exact versions for protoc-gen-go? #2

H-Shafiei opened this issue Apr 27, 2021 · 2 comments

Comments

@H-Shafiei
Copy link

Hi,
The new versions of protoc-gen-go don't support grpc plugins and have some changes which makes your repo not work. I have an issue regarding this problem here too.

Have you done this recently?

Thanks,
Hamed

@AlexanderJLiu
Copy link
Owner

According to my local history, these are the versions I've used:

  1. protoc: 3.12.3

  2. protoc-gen-go:

    1. google.golang.org/protobuf: protobuf@v1.23.0 or

    2. github.com/golang/protobuf: protobuf@v1.4.2

@H-Shafiei
Copy link
Author

Thanks for the response.
For protoc-gen-go if I install google.golang.org/protobuf@v1.23.0, it doesn't support the grpc plugin which I should install protoc-gen-go-grpc as well which then I encounter this error:

--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC

I then switched to github.com/golang/protobuf@v1.4.2 but when I want to install the protoc-gen-go package from this module, for some weird reason it downloads google.golang.org/protobuf@v1.26.0 which again raises the same error!

So what I did was I ran go get -u github.com/golang/protobuf@v1.4.2 and NOT go get -u github.com/golang/protobuf/protoc-gen-go@v1.4.2 and then manually build the protoc-gen-go package.

Now it builds successfully and I'm trying to call my model from the tf serving grpc endpoint.

If this is successful, I would let you know and close the issue.

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

2 participants