Commit 50ce64e
fix: cache Go module dir to prevent re-downloads (#200)
## Summary
- Add `~/go/pkg/mod` to the CI tools cache path
- This persists downloaded Go modules across CI runs
- Prevents unnecessary re-downloads of tool dependencies on every action
run
## Problem
The current cache configuration only cached `~/go/bin` (tool binaries)
but not `~/go/pkg/mod` (Go module cache). This meant that even when
binaries were cached, `go install` had to re-download all tool
dependencies from scratch on every run because the module cache wasn't
persisted.
## Solution
Include `~/go/pkg/mod` in the cache path alongside `~/go/bin` and
`~/.cache/golangci-lint`. This ensures that:
1. Tool binaries are cached (already working)
2. Downloaded Go modules are cached (new)
3. Tools can be installed near-instantly when cache hits
## Test plan
- [x] Run CI and verify cache hits on subsequent runs
- [x] Verify "Install tools" step completes faster
Made with [Cursor](https://cursor.com)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* CI workflows updated to newer workflow tool versions for consistency
across quality, test, code scanning, and release runs.
* Simplified caching to a broad dependency-sum pattern ("**/*.sum") and
removed the dedicated tools-binaries cache step (commented placeholder
kept).
* Quality, test, and release pipelines retain existing
install/lint/vuln/test-coverage steps with aligned checkout/setup
behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 14e62b4 commit 50ce64e
3 files changed
Lines changed: 25 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
32 | 28 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | | - | |
64 | | - | |
65 | 61 | | |
66 | | - | |
67 | | - | |
| 62 | + | |
| 63 | + | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments