Skip to content

build(buf): use a workspace-local cache directory#275

Open
armenzg wants to merge 1 commit into
mainfrom
armenzg/dev-env/buf-cache
Open

build(buf): use a workspace-local cache directory#275
armenzg wants to merge 1 commit into
mainfrom
armenzg/dev-env/buf-cache

Conversation

@armenzg

@armenzg armenzg commented May 27, 2026

Copy link
Copy Markdown
Member

Configure buf to use a cache directory inside the repository workspace.

.envrc now exports BUF_CACHE_DIR=$PWD/.buf-cache, and .gitignore excludes that folder. This avoids writes to ~/.cache/buf, which are often blocked in sandboxed development environments.

The change is local-development only and does not alter protobuf schemas or release artifacts.

Export BUF_CACHE_DIR from .envrc and ignore the cache folder so buf can write
inside the repository workspace instead of relying on ~/.cache.

Co-Authored-By: Codex <noreply@openai.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@armenzg armenzg self-assigned this May 27, 2026
@armenzg armenzg requested a review from markstory May 27, 2026 20:09
@armenzg armenzg marked this pull request as ready for review May 27, 2026 20:09
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