Skip to content

Allow _V2 protoc option #1308

Description

@Clement-Jean

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions