Fix `visible` query operator for Macro-Aware Visibility
Open
P1
team-Loading-API
type: bug
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
@bazel-io flag 8.0.0
This is likely something we can cherrypick into 8.0 in October.
----
The `visible` operator for `bazel query` commands has a separate implementation from Bazel's actual visibility check done in the analysis phase. We have not yet updated that implementation to take into account the new Macro-Aware Visibility model. The consequence is that `visible(...)` may return incorrect results for consuming targets created inside symbolic macros.
Contributor guide
Assessment
This issue has not been assessed yet.