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 passing ScalaPB generator options to the toolchain #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kerinin
Copy link
Contributor

@kerinin kerinin commented Aug 26, 2019

This allows the scala_proto_toolchain rule to configure the ScalaPB
generator options. Some options (grpc) cannot be configured on a per-file
basis, so this mechanism is necessary to use them.

This allows the scala_proto_toolchain rule to configure the ScalaPB
generator options. Some options (grpc) cannot be configured on a per-file
basis, so this mechanism is necessary to use them.
@SrodriguezO
Copy link
Collaborator

@kerinin this looks awesome! Thanks for doing this. Just a couple things:

  • Would you mind including a test?
  • What do you think about white-listing the valid parameters?

According to the docs, the valid parameters are:

  • flat_package
  • java_conversions
  • grpc
  • single_line_to_proto_string
  • no_lenses
  • retain_source_code_info

@SrodriguezO
Copy link
Collaborator

@kerinin any update on this one?

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

Successfully merging this pull request may close these issues.

None yet

2 participants