namely / docker-protoc

Docker images for generating protocol buffer definitions
BSD 3-Clause "New" or "Revised" License
719 stars 227 forks source link

Unable to set go --grpc_out #247

Open turgayozgur opened 3 years ago

turgayozgur commented 3 years ago

GEN_STRING is not supporting to set --grpc_out for go language: https://github.com/namely/docker-protoc/blob/89631f00bc21607a8b4bc45b896d98754c4fd0b8/all/entrypoint.sh#L318

However, it is supported for some of the languages like csharp: https://github.com/namely/docker-protoc/blob/89631f00bc21607a8b4bc45b896d98754c4fd0b8/all/entrypoint.sh#L367

How can I get the _grpc output for golang?

chris-kruining commented 2 years ago

because the flag is --grpc-out I believe, the underscore is a hyphen, I ran into the same issue with --js_out

https://github.com/namely/docker-protoc/blob/1c2146e7dd38a25bb09410734ee4b47ce257fa64/all/entrypoint.sh#L40

ido-namely commented 1 year ago

@turgayozgur what kind of setting are you interested in setting in --grpc_out for go? I ask because some of the config options are exposed via other more specific flags in the script.