-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor all the input processing code. (#756)
* Refactor all the input processing code. - Create a MappingContext to hold behaviors and defaults - Change calls - from `process_x(ctx, content_map, ..., default_x, default_y, ...)` - to `process_x(mapping_context, ...) 1. This brings the code more in line with the new preferred rule writing style. 1. A major motivation for the change is adding include_runfiles to pkg_tar, where we want to sometimes have add_label_list do the runfiles inclusion for us, and other times we want to revert to legacy behavior. If we always passed it in `ctx`, that would not be possible. * Syle nits * make buildifier happier
- Loading branch information
Showing
7 changed files
with
290 additions
and
288 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
Oops, something went wrong.