You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What does this PR do?
Add `**/build` to `REPO.bazel`'s `ignore_directories()`, replacing
`.bazelignore`, and adjust `CODEOWNERS` accordingly.
### Motivation
When `bazel` runs inside a Linux container on macOS via Docker Desktop,
the workspace is typically mounted on a case-insensitive filesystem
where `BUILD` and `build` are indistinguishable
(docker/desktop-feedback#251). #48455 addressed this for `gazelle` by
restricting it to `BUILD.bazel` files only. Bazel's own directory
traversal, however, remained exposed to the same confusion.
`REPO.bazel` gained `ignore_directories()` in Bazel **8.0***
(bazelbuild/bazel#24203), introduced as a complement to `.bazelignore`
> to provide a migration path off of that weird single-purpose configuration file.
It supports Bazel's native `glob()` semantics, making `**/build` a
natural fit.
### Additional Notes
Coming from Bazel 7, I was not aware of `REPO.bazel`, otherwise I would
have added it in the first place instead of `.bazelignore` (#40153).
In `CODEOWNERS`, `/MODULE.bazel*` is replaced by `/*.bazel*` to cover
`REPO.bazel` as well as any future root-level `.bazel` files.
0 commit comments