Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow _V2 protoc option #1308

Open
Clement-Jean opened this issue Sep 17, 2024 · 0 comments
Open

Allow _V2 protoc option #1308

Clement-Jean opened this issue Sep 17, 2024 · 0 comments

Comments

@Clement-Jean
Copy link

I would like to be able to generate V2 protobuf code (https://github.com/grpc/grpc-swift/blob/f3380d217ebd7f5a939115736bcc19fe1752fee9/Plugins/GRPCSwiftPlugin/plugin.swift#L73). I was able to do it manually like the following:

protoc --swift_out=. \
       --swift_opt=FileNaming=DropPath \
       --grpc-swift_out=. \
       --grpc-swift_opt=Client=true,Server=false,FileNaming=DropPath,_V2=true \
       proto/my.proto

but it seems the rules_swift doesn't accept this option (

GRPC_PLUGIN_OPTION_ALLOWLIST = PROTO_PLUGIN_OPTION_ALLOWLIST + [
).

would it be possible to add it?

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

No branches or pull requests

1 participant