Skip to content

Mark plugin as supporting edition 2024#125

Merged
stefanvanburen merged 4 commits into
mainfrom
svanburen/plugin-edition-2024-support
Feb 11, 2026
Merged

Mark plugin as supporting edition 2024#125
stefanvanburen merged 4 commits into
mainfrom
svanburen/plugin-edition-2024-support

Conversation

@stefanvanburen

Copy link
Copy Markdown
Member
Ref: #119 (comment)

Signed-off-by: Stefan VanBuren <svanburen@buf.build>
@stefanvanburen stefanvanburen requested a review from a team February 9, 2026 15:03
Comment thread README.md
### Proto Editions Support

connect-python supports Proto Editions 2023:
`protoc-gen-connect-python` supports up to [Protobuf Editions](https://protobuf.dev/editions/overview/) 2024:

Copy link
Copy Markdown
Member Author

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. 🤷

We could test 2023 as well, but seems fine to just bump to 2024.

Signed-off-by: Stefan VanBuren <svanburen@buf.build>
responseWriter.SetFeatureSupportsEditions(
descriptorpb.Edition_EDITION_PROTO3,
descriptorpb.Edition_EDITION_2023,
descriptorpb.Edition_EDITION_2024,

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Member Author

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>
@stefanvanburen stefanvanburen merged commit 7bc1e26 into main Feb 11, 2026
23 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/plugin-edition-2024-support branch February 11, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants