Skip to content

Allow _V2 protoc option #1308

Open
Open
@Clement-Jean

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?

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