Skip to content

Conversation

@liucijus
Copy link
Collaborator

Docs updates related to a new scala_proto_deps_toolchain toolchain

@liucijus liucijus requested a review from ittaiz as a code owner October 26, 2020 09:22
@google-cla google-cla bot added the cla: yes label Oct 26, 2020
| with_single_line_to_string | `boolean, optional (default False)` <br> Enables generation of toString() methods that use a single line format.
| blacklisted_protos | `List of labels, optional` <br> List of protobuf targets to exclude from recursive building.
| code_generator | `Label, optional (has default)` <br> Which code generator to use. A sensible default is provided.
| named_generators | `String dict, optional` <br>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add explanation what this dict contains. ie a mapping from protoc plugin name to a class name implementing protocbridge.ProtocCodeGenerator

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table is from previous doc, I would like to keep changes not related to deps toolchain for another PR

| blacklisted_protos | `List of labels, optional` <br> List of protobuf targets to exclude from recursive building.
| code_generator | `Label, optional (has default)` <br> Which code generator to use. A sensible default is provided.
| named_generators | `String dict, optional` <br>
| extra_generator_dependencies | `List of labels, optional` <br>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add explanation that this contains a list of jars where named generators are loaded from.

| extra_generator_dependencies | `List of labels, optional` <br>
| scalac | `Label, optional (has default)` <br> Target for scalac. A sensible default is provided.

To configure dependencies, configure a different `scala_proto_deps_toolchain` and declare it in a `BUILD` file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "to configure custom dependencies"? Or does somewhere else clarify that by default you don't need to do anything

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated docs with clarification

@ittaiz ittaiz merged commit f9fbf4e into bazel-contrib:master Oct 30, 2020
blorente pushed a commit to twitter-forks/rules_scala that referenced this pull request Nov 26, 2020
* Update docs for proto toolchain

* Clarify when to use toolchains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants