Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants