-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Adapt usage instructions to use protoc-gen-go-grpc #1755
Adapt usage instructions to use protoc-gen-go-grpc #1755
Conversation
This reflect recent changes in https://grpc.io/docs/languages/go/quickstart/ to use new protoc-gen-go-grpc. Also remove a duplicated paragraph.
9527013
to
02ea2e1
Compare
Codecov Report
@@ Coverage Diff @@
## master #1755 +/- ##
=======================================
Coverage 58.74% 58.74%
=======================================
Files 33 33
Lines 3624 3624
=======================================
Hits 2129 2129
Misses 1237 1237
Partials 258 258 Continue to review full report at Codecov.
|
Thanks a lot for this update, and for removing the duplicate installation instructions 😂. I'm worried what other merge mistakes I made 😬. |
Replace github.com/golang/protobuf/protoc-gen-go by google.golang.org/protobuf/cmd/protoc-gen-go
@johanbrandhorst I did not find any other duplicated paragraph in the README ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having made this switch, we should replace any uses of plugins=grpc
in the repo. I can see it's still there in a few docs files. Sorry I missed it on the first review.
I've updated the PR; I hope instructions are now correct. |
go get -u -v github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway | ||
go get -u -v github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 | ||
go get -u -v google.golang.org/protobuf/cmd/protoc-gen-go | ||
go get -u -v google.golang.org/grpc/cmd/protoc-gen-go-grpc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should drop the -u -v
as well, this is not how things are installed anymore.
@johanbrandhorst I've updated the PR with the _opt format, and fixed some other small issues (missing However, I did not update Cygwin instructions. I've installed Cygwin on a Windows VM to test the Cygwin instructions with an up-to-date Golang version (1.15 instead of 1.8). The majority of the instructions were now unnecessary (the errors mentioned with |
😂 I can't believe you booted a windows VM to test this, that's some serious dedication. Yeah I'd be happy to remove the Cygwin instructions as well, they have surely bitrotted beyond usefulness. Thanks so much for your help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more picky comments while we're at it, thank you so much for this cleanup!
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks so much for this Olivier 😄
References to other Issues or PRs
N/A
Have you read the Contributing Guidelines?
Yes
Brief description of what is fixed or changed
This reflect recent changes in https://grpc.io/docs/languages/go/quickstart/ to use new protoc-gen-go-grpc.
Also remove a duplicated paragraph.