Skip to content

protoc-gen-go-grpc not fully supported 'edition 2024' #8870

@Anveena

Description

@Anveena

NOTE: if you are reporting is a potential security vulnerability or a crash,
please follow our CVE process at
https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md instead of
filing an issue here.

Please see the FAQ in our main README.md, then answer the questions below
before submitting your issue.

What version of gRPC are you using?

google.golang.org/grpc v1.78.0
protoc-gen-go-grpc 1.6.0

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

go version go1.25.6 linux/amd64

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

Linux

What did you do?

If possible, provide a recipe for reproducing the error.

When I update to editions 2024 and generate files with (features)[https://protobuf.dev/editions/features/#preserving] , like the demo from this page

import option "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_OPAQUE;

import option "google/protobuf/cpp_features.proto";
option features.(pb.cpp).string_type=STRING;

I got this error

protoc-gen-go-grpc: unable to determine Go import path for "google/protobuf/cpp_features.proto"

Please specify either:
	• a "go_package" option in the .proto source file, or
	• a "M" argument on the command line.

See https://protobuf.dev/reference/go/go-generated#package for more information.

--go-grpc_out: protoc-gen-go-grpc: Plugin failed with status code 1.

What did you expect to see?

No error, import option key words can be handled correctly

What did you see instead?

Same Above.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions