protobuf: plugins are not supported : grpc
run:
protoc protoc/route_guide.proto --go_out=plugins=grpc:.
output:
--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 8
- Comments: 19 (7 by maintainers)
Links to this issue
Commits related to this issue
- protoc: use --go-grpc_out= as like in isucon10-portal https://github.com/golang/protobuf/issues/1070 — committed to isucon/isucon10-final by sorah 4 years ago
- feat: add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 — committed to AlekSi/talos-tools by AlekSi 3 years ago
- feat: add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com> — committed to AlekSi/talos-tools by AlekSi 3 years ago
- feat: add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com> — committed to AlekSi/talos-tools by AlekSi 3 years ago
- feat: add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com> — committed to siderolabs/tools by AlekSi 3 years ago
- Add Makefile There has been a change in the protoc binary from version v1.12. For more information refer to: https://github.com/golang/protobuf/issues/1070. This Makefile has been kept minimal to ac... — committed to raghavendra-talur/spec by raghavendra-talur 3 years ago
- feat: bump protobuf deps, add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com> — committed to AlekSi/talos-tools by AlekSi 3 years ago
- feat: bump protobuf deps, add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com> — committed to AlekSi/talos-tools by AlekSi 3 years ago
- feat: bump protobuf deps, add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com> — committed to siderolabs/tools by AlekSi 3 years ago
- api/gadgettracermanager: Support new protoc-gen-go-grpc As described in [1], plugins=grpc is not supported anymore in latest versions of protoc-gen-go because it was moved to https://github.com/grpc/... — committed to inspektor-gadget/inspektor-gadget by blanquicet 3 years ago
- api/gadgettracermanager: Support new protoc-gen-go-grpc As described in [1], plugins=grpc is not supported anymore in latest versions of protoc-gen-go because it was moved to https://github.com/grpc/... — committed to inspektor-gadget/inspektor-gadget by blanquicet 3 years ago
- api/gadgettracermanager: Support new protoc-gen-go-grpc As described in [1], plugins=grpc is not supported anymore in latest versions of protoc-gen-go because it was moved to https://github.com/grpc/... — committed to inspektor-gadget/inspektor-gadget by blanquicet 3 years ago
- api/gadgettracermanager: Support new protoc-gen-go-grpc As described in [1], plugins=grpc is not supported anymore in latest versions of protoc-gen-go because it was moved to https://github.com/grpc/... — committed to inspektor-gadget/inspektor-gadget by blanquicet 3 years ago
- api/gadgettracermanager: Support new protoc-gen-go-grpc As described in [1], plugins=grpc is not supported anymore in latest versions of protoc-gen-go because it was moved to https://github.com/grpc/... — committed to eiffel-fl/inspektor-gadget by blanquicet 3 years ago
- api/gadgettracermanager: Support new protoc-gen-go-grpc As described in [1], plugins=grpc is not supported anymore in latest versions of protoc-gen-go because it was moved to https://github.com/grpc/... — committed to inspektor-gadget/inspektor-gadget by blanquicet 3 years ago
google.golang.org/protobuf/cmd/protoc-gen-gowill never have explicit gRPC support. We’ve split it out into a separate program (protoc-gen-go-grpc), so the gRPC code generator can live in the gRPC repository and follow that repo’s release cycle.The practical effect is that when using this generator you will need to specify two flags on the
protoccommand line (or runprotoctwice):The original
github.com/golang/protobuf/protoc-gen-gowill continue to directly support gRPC generation indefinitely, to avoid breaking existing users.The
google.golang.org/protobuf/cmd/protoc-gen-goprogram doesn’t include gRPC support. Instead, that support will soon be provided by agoogle.golang.org/grpc/cmd/protoc-gen-go-grpcprogram. That program is In code review now, but not quite yet available.The
github.com/golang/protobuf/protoc-gen-goprogram supports gRPC as always, and will continue to do so. Versionsv1.4and newer of that program support the new protobuf reflection features. (Right now, the newest release isv1.4.0-rc.4.)It seems strange to give a warning and recommend using a plugin that does not yet exist.
How to use original
github.com/golang/protobuf/protoc-gen-go? The new way just broke all my codebase…This doc needs to be updated.
gRPC generation is no longer handled as a plugin of this
protoc-gen-gopackage. We only generate the protobuf definitions, theprotoc-gen-go-grpcis now responsible for generating grpc code.It tells you what you need to do:
This can work. Great