-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 grpc-gateway from v1 to v2 #16595
Conversation
cc @johanbrandhorst as well. Please kindly let's know if you have any concern. |
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.
LGTM
|
||
trap cleanup_googleapi EXIT | ||
|
||
# TODO(ahrtr): use buf (https://github.com/bufbuild/buf) to manage the protobuf dependencies? |
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.
+1
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.
LGTM
f4ebc61
to
dc1172a
Compare
This PR is trying to resolve an important task tracked in 3.6 roadmap. Ping all etcd maintainers to take a look, thx. |
@tao12345666333 @CyberDem0n & anyone else, Could you please also verify this PR on your project, so as to make sure it doesn't break anything? Thanks. |
Signed-off-by: Wei Fu <fuweid89@gmail.com> Signed-off-by: Benjamin Wang <wachao@vmware.com>
Run ./scripts/genproto.sh Signed-off-by: Benjamin Wang <wachao@vmware.com> Signed-off-by: Wei Fu <fuweid89@gmail.com>
…s to v2 messages Signed-off-by: Benjamin Wang <wachao@vmware.com> Signed-off-by: Wei Fu <fuweid89@gmail.com>
…2.17.1 for all modules Signed-off-by: Benjamin Wang <wachao@vmware.com>
1. Manually updated go source file to remove the usage of v1 grpc-gateway; 2. Execute ./scripts/fix.sh Signed-off-by: Benjamin Wang <wachao@vmware.com> Signed-off-by: Wei Fu <fuweid89@gmail.com>
Signed-off-by: Benjamin Wang <wachao@vmware.com>
…script or code Signed-off-by: Benjamin Wang <wachao@vmware.com>
thx all. @fuweid @johanbrandhorst @serathius @tao12345666333 Especially a big THANK YOU to @fuweid, who demonstrated deep understanding on both etcd and grpc-gateway/protobuf. |
gogo/protobuf
. We only bump grpc-gateway from v1 to v2 in this PR, so as to avoid any potential compatibility issues betweengogo/protobuf
andprotobuf-go v2
cc @fuweid @jmhbnz @mitake @ptabor @serathius @spzala @wenjiaswe @dims @liggitt
To clarify, although this PR looks huge, but actually majority source code are generated by protoc plugins.