grpc-swift icon indicating copy to clipboard operation
grpc-swift copied to clipboard

FileNaming (and other options) are not exposed to the SPM plugin

Open EraYaN opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe it.

When using the SPM Plugin you can not specify FileNaming which will lead often to name collisions which swift really does not like.

Describe the solution you'd like

Some way to either add arbitrary arguments to the protoc call form the json file. Or explicit support for all possible options the generator supports.

Describe alternatives you've considered

I can of course stop using the SPM plugin and generate all the code myself, but I'd much rather keep using the SPM plugin.

Additional context

The pull request this option was added.

EraYaN avatar Feb 21 '24 15:02 EraYaN

I don't think there's any reason not to add this; we added it to the SwiftProtobuf plugin (https://github.com/apple/swift-protobuf/blob/main/Plugins/SwiftProtobufPlugin/plugin.swift). Adding it to gRPC Swift should be very similar.

glbrntt avatar Mar 04 '24 10:03 glbrntt

It would be really lovely to have the "fileNaming": "PathToUnderscores", and its pals introduced.

adam-rocska avatar May 12 '24 16:05 adam-rocska