-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make initialization of important fields a little more uniform, by having the builder construct a Metadata object to pass to the Package() constructor. - Delete unnecessary repositoryMapping builder field, in favor of the Metadata field. Move its initialization to the Builder() constructor. - Fix theoretical bug in use of ruleLabels cache in beforeBuild(). - Deletion of mainRepositoryMapping param will come in a follow-up that changes the Builder() constructor signature. - Update javadocs and add TODOs. In particular, remove outdated verbiage on the steps of Package initialization. - Reorder Metadata fields and accessors to fix grouping (buildFile and sourceRoot are set after BUILD eval completes). - Add note in LabelConverter's javadoc that it's not thread-safe. This came up when deciding whether or not the converter field should be moved from the package builder to the Metadata. Work toward #19922. PiperOrigin-RevId: 592317902 Change-Id: Ic87a8504442c3eea1c0fcf246f8413777ae0f2c9
- Loading branch information
1 parent
8ebb3bf
commit bc1c1de
Showing
2 changed files
with
81 additions
and
49 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