-
Notifications
You must be signed in to change notification settings - Fork 6
Mark plugin as supporting edition 2024 #125
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
base: main
Are you sure you want to change the base?
Conversation
Ref: #119 (comment) Signed-off-by: Stefan VanBuren <svanburen@buf.build>
| ### Proto Editions Support | ||
|
|
||
| connect-python supports Proto Editions 2023: | ||
| `protoc-gen-connect-python` supports up to [Protobuf Editions](https://protobuf.dev/editions/overview/) 2024: |
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.
seemed more right to mention the plugin here, although I know this goes against the consistency of the rest of the README. 🤷
| responseWriter.SetFeatureSupportsEditions( | ||
| descriptorpb.Edition_EDITION_PROTO3, | ||
| descriptorpb.Edition_EDITION_2023, | ||
| descriptorpb.Edition_EDITION_2024, |
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.
Don't we need to keep 2023 here too?
Initially I thought the unit test was somewhat overkill but it alerted me to this so it was pretty good I guess :) Maybe we should t.Run across the multiple editions then
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.
that tripped me up too, but we're actually declaring the min/max "edition" we support here: https://pkg.go.dev/github.com/bufbuild/protoplugin#ResponseWriter. (I don't love the naming of that method, but I guess it's more obvious once you see the argument names.) So 2023 is implicitly supported.
Even so, I took a shot at making the edition tests table-based and tested both 2023 and 2024, just to have coverage: 91a76cc
Signed-off-by: Stefan VanBuren <svanburen@buf.build>
May as well test each edition. Also, make all subtests parallel. Signed-off-by: Stefan VanBuren <svanburen@buf.build>
Ref: #119 (comment)