rules_proto_grpc/tools/fixer
Adam Liddell fa14f8444c Disable log message from fixer
This message provides no actionable benefit to users and is otherwise
just polluting logs
2021-11-29 23:03:36 +00:00
..
BUILD.bazel Apply yet more buildifier fixes 2021-02-14 20:14:48 +00:00
README.md Add fixer tool to force a plugin to be deterministic 2021-02-11 20:33:26 +00:00
main.cpp Disable log message from fixer 2021-11-29 23:03:36 +00:00

README.md

Fixer

This is a simple executable that fills in missing files from plugins that have non-deterministic outputs. This is particularly useful for gRPC plugins that do not make an output file when the proto file does not contain a service and also cannot be fixed by using output_directory. As a result, this tool is the option of last resort to fix a plugin that does not behave well with Bazel.

This executable receives the directory of generated plugin outputs, a file containing the expected file paths and a path to an empty file template. Any missing files will be filled with the empty file template.

This is implemented in C++, as it is the 'lowest common denominator' language that a user is likely to have working without relying on another rule set. Python would be another option, but is slightly more likely to have issues.