-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
runtime: rewrite query.go in new protoreflect #1272
Conversation
3b54229
to
10eb6a6
Compare
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.
Changes overall look good to me.
751ca15
to
8bee367
Compare
EDIT: worked around this issue by avoiding Seeing a really strange bazel build error:
Meanwhile, @drigz please help me like you have with all my other bazel issues 😂. |
8dec3ac
to
6125843
Compare
945f194
to
279b3b9
Compare
Great, it's actually not fixed, because now we're getting this error instead:
I'll revert the change and go back to |
279b3b9
to
48701d6
Compare
Did you find https://nullset.xyz/2020/04/20/bazel-go-and-protobufs/? Does it help? bazel-contrib/rules_go#2395 was closed a week and a half ago, so maybe using rules_go from master is easier than excising uses of the new APIv2. |
Thanks Rodrigo, I took some time to investigate the error and landed on the same conclusion as you. I actually upgraded to rules_go from master to test it, and it does work (the bazel build is now failing for other reasons), but I'm going to back out the change again and simply wait for the next release to drop before merging this. Thanks again for all your help 😍. |
48701d6
to
02d5e27
Compare
02d5e27
to
35cf335
Compare
Replaces lots of go reflection with protoreflect from APIv2. This is an essential part of rooting out the old API from our packages. Unfortunately, we also lose the capability to support gogoproto
stdtime
andstdduration
types, since they cannot be represented in the new reflection interface.If you do want to review this, I suggest opening the new file separately, the diff is mostly unhelpful since it's a complete rewrite.