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

protoc for Windows calls deprecated protoc-gen-go should use protoc-gen-go-grpc instead? #16357

Open
N3xus8 opened this issue Apr 1, 2024 · 1 comment
Labels

Comments

@N3xus8
Copy link

N3xus8 commented Apr 1, 2024

What version of protobuf and what language are you using?
protoc version 26.1-win64
Language: GO

What operating system (Linux, Windows, ...) and version?
Windows 11
What runtime / compiler are you using (e.g., python version or gcc version)

What did you do?
Steps to reproduce the behavior:

  1. protoc --go_out=invoicer --go_opt=paths=source_relative --go-grpc_out=invoicer --go-grpc_opt=paths=source_relative invoicer.proto
  2. See error:
    'protoc-gen-go' is not recognized as an internal or external command,
    operable program or batch file.

What did you expect to see
I expected to get 2 new files:
invoicer.pb.go
invoicer_grpc.pb.go
Probably should call protoc-gen-do-grpc? as protoc-gen-go is deprecated.

What did you see instead?
'protoc-gen-go' is not recognized as an internal or external command,
operable program or batch file.

@N3xus8 N3xus8 added the untriaged auto added to all issues by default when created. label Apr 1, 2024
@N3xus8
Copy link
Author

N3xus8 commented Apr 1, 2024

I have also used the "include" directory which comes with protoc executable.
I also used the following command:
protoc --proto_path=invoicer
--proto_path=third_party
--go_out=plugins=grpc:invoicer
invoicer.proto

Where third_party directory contains the "include" directory files
I got the same result:
'protoc-gen-go' is not recognized as an internal or external command,
operable program or batch file.
--go_out: protoc-gen-go: Plugin failed with status code 1.

@shaod2 shaod2 added golang and removed untriaged auto added to all issues by default when created. labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants