-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to prost-build to skip the run of protoc (#442)
* Add option to prost-build to skip the run of protoc Our build system ends up generating all of the relevant protobuf files already, so this ends up being a redundant step for us. This allows the running of the protoc step to be skipped. There are some API concerns with this. The inputs to compile_protos are now ignored if that flag is set. I didn't know to balance that with Config::file_descriptor_set_path, which effectively allows for an input of a filename into the config. I could create a separate entry, similar to compile_protos, that takes either: 1. Nothing and uses the config function input. This, however, can be left unspecified and error out, which isn't super user-friendly. 2. A path, but this would now ignore the existing config input function if it was passed in. I'm happy to put up a change that does that, but it wasn't clear either was great, so I ended up going with the simplest approach. * fix typo and build failure Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
- Loading branch information
1 parent
859f243
commit 3f2e465
Showing
2 changed files
with
66 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters