fix(ci): disable Go caching to eliminate duplicate-restore errors#2877
Merged
fix(ci): disable Go caching to eliminate duplicate-restore errors#2877
Conversation
Go coverage baseline produced 10+ "Cannot open: File exists" annotations per run. Root cause: setup-go@v5 with cache:true AND a manual actions/cache@v4 both restored to the same paths, so the second restore failed on existing files. Go builds are fast enough that caching is unnecessary. Replaced the enabled/cache-dependency-path/golangci-lint-version inputs with read-cache/save-cache (both default "false") for parity with setup-rust-with-cache. Also disabled golangci-lint-action caching in pre-merge to stop creating small stale entries.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2877 +/- ##
=========================================
Coverage 68.33% 68.33%
Complexity 739 739
=========================================
Files 1053 1053
Lines 84763 84763
Branches 61297 61308 +11
=========================================
+ Hits 57923 57926 +3
+ Misses 24468 24460 -8
- Partials 2372 2377 +5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
mmodzelewski
approved these changes
Mar 5, 2026
spetz
approved these changes
Mar 9, 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.
Go coverage baseline produced 10+ "Cannot open: File exists"
annotations per run. Root cause: setup-go@v5 with cache:true
AND a manual actions/cache@v4 both restored to the same paths,
so the second restore failed on existing files.
Go builds are fast enough that caching is unnecessary. Replaced
the enabled/cache-dependency-path/golangci-lint-version inputs
with read-cache/save-cache (both default "false") for parity
with setup-rust-with-cache. Also disabled golangci-lint-action
caching in pre-merge to stop creating small stale entries.