Skip to content

[protoc-gen-go-grpc] Support Protobuf edition 2024 #8642

@JasonMing

Description

@JasonMing

What version of gRPC are you using?

protoc-gen-go-grpc 1.5.1

What version of Go are you using (go version)?

go version go1.25.2 darwin/arm64

What operating system (Linux, Windows, …) and version?

Darwin MacBookPro.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000 arm64

What did you do?

edition = "2024";

package example;
option go_package=".;example";

service Foo {}
protoc  --go_out=. --go-grpc_out=. example.proto

What did you expect to see?

Generate example.pb.go and example_grpc.pb.go.

What did you see instead?

protoc-gen-go-grpc: invalid FileDescriptorProto "example.proto": proto: use of edition EDITION_2024 not yet supported by the Go Protobuf runtime

Metadata

Metadata

Assignees

Labels

Area: CodegenIncludes anything related to protoc-gen-go-grpc.Type: FeatureNew features or improvements in behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions