Skip to content

Add .bazelignore for .claude#18

Merged
avrabe merged 1 commit into
mainfrom
add/bazelignore
May 23, 2026
Merged

Add .bazelignore for .claude#18
avrabe merged 1 commit into
mainfrom
add/bazelignore

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 23, 2026

Summary

Adds a .bazelignore at the repo root containing .claude. Closes the first item in #14.

Why

bazel query //... and bazel build //... traverse every directory that looks like a Bazel package. The .claude/ tree holds Claude Code agent worktrees (each a full wohl checkout with its own BUILD.bazel) and local settings — none of which belong in the root workspace's build graph. Without .bazelignore, an agent worktree under .claude/worktrees/agent-*/ makes bazel try to load that worktree's BUILD files as packages of the root workspace, and the load fails on missing transitive rules from sibling checkouts the agent had (e.g. earlier in the project: an rules_rocq_rust reference inside a worktree's relay symlink broke bazel query //...).

This wasn't just hypothetical — it's been a real blocker for trying to wire bazel build //... into CI (#8).

Verification

bazel query '//...' now enumerates targets cleanly with agent worktrees still present under .claude/worktrees/. No other changes.

🤖 Generated with Claude Code

bazel query //... and bazel build //... traverse into every directory
that looks like a Bazel package. The .claude/ directory holds Claude
Code agent worktrees (full wohl checkouts with their own BUILD.bazel
files) and local settings — none of which should be evaluated by the
root workspace. Without .bazelignore, an agent worktree under
.claude/worktrees/agent-*/ makes bazel try to load that worktree's
BUILD files as packages of the root workspace, and the load fails
(e.g. missing transitive rules from sibling checkouts the agent had).

.bazelignore with `.claude` tells bazel to skip the directory entirely,
which is both correct (.claude is tooling state, not a build input)
and unblocks future "bazel build //..." CI jobs (tracked in #8).

Verified: bazel query '//...' now enumerates targets cleanly with
agent worktrees still present under .claude/worktrees/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 2961c06 into main May 23, 2026
9 of 10 checks passed
@avrabe avrabe deleted the add/bazelignore branch May 23, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant