Skip to content

build: configure repository cache in .bazelrc - #4137

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:configure_bazel_repo_cache
Sep 2, 2026
Merged

build: configure repository cache in .bazelrc#4137
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:configure_bazel_repo_cache

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Configure a shared Bazel repository cache and enable hardlinks for
local builds.

Developer workflows that use short-lived worktrees (such as agentic
development) repeatedly re-download external dependencies and consume
excessive disk space.

Configure a shared repository cache and enable hardlinks for local
builds to avoid re-downloading external dependencies and save disk space.
CI continues to disable hardlinks to work around a Bazel 7 issue.
@rickeylev
rickeylev requested a review from aignas as a code owner September 2, 2026 07:51
@aignas

aignas commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Nit, if possible, we could also turn on remote repo contents cache to test for regressions in #3791.

@rickeylev
rickeylev added this pull request to the merge queue Sep 2, 2026
Merged via the queue into bazel-contrib:main with commit 6c57f12 Sep 2, 2026
5 checks passed
@rickeylev
rickeylev deleted the configure_bazel_repo_cache branch September 2, 2026 18:01
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.

2 participants