-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bzlmod: Store a Package instead of a Rule in BzlmodRepoRuleValue
(bazelbuild/bazel#13316) This is to work around a restriction in Google. The external packages we create in BzlmodRepoRuleFunction host just one rule each; so instead of storing a rule, we can just store the package and get the rule from there. This does require adding the rule to the package, which we weren't doing before. This involved a bit of a detour to clean up the RuleFactory#createAndAddRule method, which for some reason has had a much more sensible overload that's package private since time immemorial. This CL simply removes the overload that just gets two fields out of PackageContext. PiperOrigin-RevId: 387543141
- Loading branch information
Luca Di Grazia
committed
Sep 4, 2022
1 parent
a99831c
commit 4baebd5
Showing
8 changed files
with
1,600 additions
and
1,553 deletions.
There are no files selected for viewing
566 changes: 331 additions & 235 deletions
566
...main/java/com/google/devtools/build/lib/analysis/starlark/StarlarkRuleClassFunctions.java
Large diffs are not rendered by default.
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
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.