protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
64.98k stars 15.41k forks source link

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

Closed N3xus8 closed 1 month ago

N3xus8 commented 4 months ago

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 commented 4 months ago

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.

github-actions[bot] commented 1 month ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] commented 1 month ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.

This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.