]> git.feebdaed.xyz Git - 0xmirror/grpc-go.git/commitdiff
protoc-gen-go-grpc: Update supported edition to 2024 (#8685)
authorMike Kruskal <62662355+mkruskal-google@users.noreply.github.com>
Thu, 30 Oct 2025 18:41:22 +0000 (11:41 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Oct 2025 18:41:22 +0000 (00:11 +0530)
Fixes: #8642
grpc-go isn't doing anything that should be affected by edition 2024, so
it should already support it. This simply advertises it so protoc will
send it edition 2024 protos without requiring an
`--experimental_editions` flag.

relnotes for cmd/protoc-gen-go-grpc:
* Add support for protobuf edition 2024.

RELEASE NOTES: N/A

cmd/protoc-gen-go-grpc/main.go

index 183ba69742e8249bb69b2281e5ab6c9e4f14b10a..2d0c2666c8c71a8c4d6206713dcf45fd24bfdc8a 100644 (file)
@@ -64,7 +64,7 @@ func main() {
        }.Run(func(gen *protogen.Plugin) error {
                gen.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) | uint64(pluginpb.CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS)
                gen.SupportedEditionsMinimum = descriptorpb.Edition_EDITION_PROTO2
-               gen.SupportedEditionsMaximum = descriptorpb.Edition_EDITION_2023
+               gen.SupportedEditionsMaximum = descriptorpb.Edition_EDITION_2024
                for _, f := range gen.Files {
                        if !f.Generate {
                                continue