Repository navigation
Add cache for BSR modules - #308
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
pkwarren
reviewed
Nov 2, 2026
| public_github_token: | ||
| description: |- | ||
| GitHub token for github.com. Must be set when running on a private GitHub Enterprise instance to authenticate requests, otherwise ignored. Used to resolve buf versions and download buf binaries from github.com. The token only needs read access to public repositories. | ||
| cache: |
Member
There was a problem hiding this comment.
Should we add an output? Looks like setup-go, setup-node, and setup-python all do that.
Collaborator
Author
There was a problem hiding this comment.
Added cache-hit to output.
| archive: false | ||
| pr_comment: false | ||
| - name: Check the module cache was populated | ||
| run: test -d ~/.cache/buf/v3/modules |
Member
There was a problem hiding this comment.
This isn't testing the action's caching - buf dep update will update the lock file and populate the cache. I set BUF_CACHE_DIR and ran the commands above and it populated these dirs:
> tree -d -L 6 cache/
cache/
└── v3
├── commitlocks
├── commits
├── modulelocks
│ └── b5
│ └── buf.build
│ └── googleapis
│ └── googleapis
├── modules
│ └── b5
│ └── buf.build
│ └── googleapis
│ └── googleapis
├── plugins
├── policies
└── wellknowntypes
emcfarlane
marked this pull request as ready for review
November 3, 2026 20:37
pkwarren
approved these changes
Nov 3, 2026
Merged
emcfarlane
added a commit
that referenced
this pull request
Nov 3, 2026
Below is propose release notes: ## What's Changed * Add cache for BSR modules and plugins by @emcfarlane in #308 **Full Changelog**: v1.6.0...v1.7.0
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide a cache setup for BSR modules. This helps speed up downloads of registry dependencies. Defaults to false, set
cache: trueto enable.