-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
deps: move from github.com/golang/protobuf to google.golang.org/protobuf/proto #6919
Conversation
d.CheckValid() already does the nil check Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
d.CheckValid() already does the nil check Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
@dfawley please check this PR. It might need another code review just to be sure that after merging with the new updates, it is still ok. |
@arvindbr8 I'm not entirely sure about the "unresolved" comment. What did you mean? @dfawley There seem to be still some work to do to remove the old package. Could you take a look at the remaining usages (channelz, credentials, internal/pretty, and xds/internal/xdsclient/bootstrap) and tell me if any of these can be translated with the protoadapt package? If yes, I'll work on that. |
I think he meant |
Oh true, there is still more to do. I have a huge PR reworking channelz, so please still wait on that. But the other ones should be fine if you are willing to work on them. Thank you! |
The remaining mention to github.com/golang/protobuf seems to be indirect dependency, some mentions in scripts and channelz. Could you take a look at the changes? especially in reflection/grpc_testing_not_regenerate, I'm not sure if it is correct. I splitted the testv3.go into two files (pb and grpc) but if you need to merge them let me know. |
Would you mind reverting all those changes since the last review so we can submit the already-reviewed code without delay? You can move them into another branch and we can go from there. Thanks! |
@dfawley This should be reverted |
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, Thanks @Clement-Jean
Hi, I don't know whether there is a third phase planned to this task, but in my application there is one remaining place where i see the deprecated dependency being brought in. Credentials.go in google.golang.org/grpc/credentials ( grpc-go/credentials/credentials.go Line 31 in 5ccf176
|
@RJKeevil We cannot remove that just yet because of possible conflicts due to a rewrite. However it's planned and I will work on it ASAP 😊 |
Yes, I think we're all clear now to finish it. Unfortunately, it looks like we'll still keep the dependency in perpetuity because of testing in https://github.com/grpc/grpc-go/blob/cce163274b6cb9de2b2bf0bc742384e5755fee42/reflection/grpc_testing_not_regenerate/testv3.go#L41C9-L41C41 |
…egeneratable proto code into /testdata (#7724)
…on-regeneratable proto code into /testdata (grpc#7724)
…on-regeneratable proto code into /testdata (grpc#7724)
This is the second part of #6736 which is moving away from github.com/golang/protobuf in favor of google.golang.org/protobuf/proto
RELEASE NOTES: