-
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.
same_pkg_direct_rdeps
only loads packages of its inputs
For graphless query mode, since `same_pkg_direct_rdeps` only tracks the same-package dependencies, there is no need to call `TargetProvider$getTarget()` for dependencies from different packages because this will [load unloaded packages](https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/pkgcache/TargetProvider.java#L30:L31) and their targets [will be ignored later](https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/query2/query/PathLabelVisitor.java#L257:L260). PiperOrigin-RevId: 504345382 Change-Id: Idb76d3f2d1a49b2d5028c37a84a6bfbee9c22689
- Loading branch information
1 parent
ffa25a5
commit 851c330
Showing
2 changed files
with
40 additions
and
0 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