Skip to content

Conversation

@stefanvanburen
Copy link
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
### 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
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
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
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants