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

Upgrade to protoc-gen-go from google.golang.org/protobuf #1087

Open
Mistic92 opened this issue Mar 1, 2022 · 1 comment
Open

Upgrade to protoc-gen-go from google.golang.org/protobuf #1087

Mistic92 opened this issue Mar 1, 2022 · 1 comment

Comments

@Mistic92
Copy link

Mistic92 commented Mar 1, 2022

Please update it to work with gomodules and latest release of protoc. Currently I'm getting

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

Also previously I had to add option go_package = "./"; to proto file.

@johanbrandhorst
Copy link
Contributor

Hi. This error is happening because you have a newer version of protoc-gen-go installed locally. This repository still uses github.com/golang/protobuf. You can install the correct version using go install github.com/golang/protobuf/protoc-gen-go in the root of this repository.

We should however update to using protoc-gen-go from google.golang.org/protobuf, so I'll keep this issue open.

@johanbrandhorst johanbrandhorst changed the title Update react example protogen.sh Upgrade to protoc-gen-go from google.golang.org/protobuf Mar 2, 2022
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