-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate
ContainingPackageLookup
node in PackageFunction
`Package` node currently creates `ContainingPackageLookup` node to detect cross subpackage boundary. However CPL's compute logic is re-implemented directly `PackageFunction` so that we do not need to create CPL node anymore. * Before this change, the dependency relation related to subpackage cross boundary check looks like: `Package node --> CPL node --> Subpackage PL node` Each Package node creates CPL nodes. The CPL node will then create subpackage's PL node and check their presence in the dependency graph. * After the change, CPL node is gone and the logic of checking subpackage presence in dependency graph is implemented directly in the outer Package node, so dependency relationship becomes: `Package node --> Subpackage PL node` And thus, each Package node directly creates Subpackage PL nodes. Similar logic also exists in `BzlLoadFunction`, and we will follow up to retire CPL usage there next. PiperOrigin-RevId: 532511725 Change-Id: I8efe7fce214a01560553d945dccc3b44d1075105
- Loading branch information
Showing
3 changed files
with
127 additions
and
65 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