Skip to content

Commit ba37efe

Browse files
authored
Extend REPO.bazel ignored directories to all "hidden" roots (#48525)
### What does this PR do? Replace the single `.cache` entry in `ignore_directories` of `REPO.bazel` with a `.*` glob that matches all "hidden" directories at the root of the workspace. ### Motivation Several "hidden" directories live at the repo root, such as: - .cache [1.] - .claude - .cursor - .dda - .ddqa - .git - .github - .gitlab [2.] - .idea - .mypy_cache - .ruff_cache - .run - .vscode - etc. Each one risks confusing `bazel`'s directory watcher and/or `gazelle`'s scope, and the list keeps growing as new tools drop directories there. The `.*` glob covers all of them without requiring future additions, including: 1. `.cache`, which was already listed, 2. `.gitlab`, thus honoring #48279 (comment) ### Additional Notes Such exclusions are of course used by `bazel` itself, but also by `gazelle` ([source](https://github.com/bazel-contrib/bazel-gazelle/blob/4a7caee10fbd2da9bb059f3ce7c2cac8d0050e53/walk/config.go#L211-L217)) and probably other tools of the Bazel ecosystem. Co-authored-by: regis.desgroppes <[email protected]>
1 parent 3ea054e commit ba37efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

REPO.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ignore_directories([
22
"**/build", # avoid BUILD/build mess: https://github.com/docker/desktop-feedback/issues/251
3-
".cache", # in-workspace cache: GitLab jobs, GitHub actions
3+
".*", # hidden root directories: .cache, .claude, .cursor, .dda, .github, .gitlab, etc.
44
"bazel-*", # bazel convenience symlinks: suddenly caused issues inside arm64 Linux containers
55
"target", # cargo build creates it where Cargo.toml lives
66
])

0 commit comments

Comments
 (0)