bazelbuild / bazelbuild/bazel

Fix `visible` query operator for Macro-Aware Visibility

Open
#23,856 3 comments 0 reactions 2 assignees Claimed by @brandjon View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.