-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [hermetic-build] simplify usage of synthtool (#2772)
This PR eliminates the need for: * `library_generation/owlbot/src/apply_repo_templates.py` * Passing the config yaml path to the postprocessing scripts ### How is it achieved? We set the environment variable `SYNTHTOOL_TEMPLATES` to point to a temp dir where we copy the contents of `owlbot/templates` plus a modification of the template using `sed` (instead of `synthtool.common_templates`). In this way, we avoid the usage of `apply_repo_templates.py`. generation_config.template_excludes. #### Why don't we use common_templates to pass libraries_bom_version? Because `owlbot.py` is a legacy script that was written when `java.common_templates` didn't take `libraries_bom_version` as a parameter. If we don't like this approach of having two template replacement workflows we could 1. Modify all owlbot.py files 2. Pass libraries_bom_version as an environment variable (not bad) #### What about template_excludes in the config yaml? We still need it to generate new libraries. This is done by rendering a new `owlbot.py` via templates.
- Loading branch information
1 parent
7a5fed3
commit 38b90e2
Showing
9 changed files
with
28 additions
and
71 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
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
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
This file was deleted.
Oops, something went wrong.
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