-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support only updating existing BUILD files (#1921)
Close #1832 **What type of PR is this?** Feature > Other **What package or component does this PR mostly affect?** > all **What does this PR do? Why is it needed?** Add an option to enable only updating existing BUILDs and not creating any new ones. I think this is common among extension authors, normally implemented with a quick-exit within `Configure` if the `*rule.File` is `nil`. However all the subdirs then need to be manually traversed to find files in subdirectories with no BUILD. I've always maintained a patch similar to this PR to avoid plugins having to do manual fs operations. **Which issues(s) does this PR fix?** Fixes #1832 **Other notes for review**
- Loading branch information
Showing
4 changed files
with
119 additions
and
11 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