Commit ba37efe
authored
Extend
### 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]>REPO.bazel ignored directories to all "hidden" roots (#48525)1 parent 3ea054e commit ba37efe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
0 commit comments