chore: Replace setup-go built-in cache with explicit actions/cache steps#2417
Merged
kodiakhq[bot] merged 3 commits intomainfrom Feb 24, 2026
Merged
chore: Replace setup-go built-in cache with explicit actions/cache steps#2417kodiakhq[bot] merged 3 commits intomainfrom
kodiakhq[bot] merged 3 commits intomainfrom
Conversation
Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update GitHub workflows to disable setup-go cache
ci: replace setup-go built-in cache with explicit actions/cache steps
Feb 24, 2026
erezrokah
approved these changes
Feb 24, 2026
There was a problem hiding this comment.
Pull request overview
This PR standardizes GitHub Actions caching for Go workflows by replacing actions/setup-go's built-in cache with explicit actions/cache@v4 steps across all 4 affected workflow files. The change provides finer control over cache keys and paths while maintaining consistent caching behavior.
Changes:
- Disabled built-in caching in
actions/setup-go@v6by settingcache: false - Added explicit
actions/cache@v4steps with cache keys incorporating runner OS, Go version, and go.sum hash - Added
id: setup-goto reference Go version output in cache keys
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/unittest.yml | Added explicit cache step to unit test workflow that runs on Linux, Windows, and macOS |
| .github/workflows/lint_golang.yml | Added explicit cache step to linting workflow running on Linux |
| .github/workflows/go_mod_tidy_examples.yml | Added explicit cache step to go mod tidy workflow running on Linux |
| .github/workflows/gen_coverage_report.yml | Added explicit cache step to coverage report workflow running on Linux |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot
AI
changed the title
chore: Replace setup-go built-in cache with explicit actions/cache steps
ci: replace setup-go built-in cache with explicit actions/cache steps
Feb 24, 2026
erezrokah
approved these changes
Feb 24, 2026
murarustefaan
approved these changes
Feb 24, 2026
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.
This ensures each job gets a dedicated cache