Skip to content

Commit ca0fde7

Browse files
wesleyjellisclaude
andauthored
Remove duplicate Go module cache step in release workflow (#100)
The `actions/cache@v4` step was redundant — `actions/setup-go@v5` already handles Go module caching natively when `cache-dependency-path` is provided. Both steps were targeting the same paths (`~/.cache/go-build` and `~/go/pkg/mod`), causing tar extraction to fail with "Cannot open: File exists" errors during cache restoration. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 81e3bd3 commit ca0fde7

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

.github/workflows/release.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ jobs:
2727
go-version-file: src/go.mod
2828
cache-dependency-path: |
2929
src/go.sum
30-
- name: Cache Go modules
31-
uses: actions/cache@v4
32-
with:
33-
path: |
34-
~/.cache/go-build
35-
~/go/pkg/mod
36-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
37-
restore-keys: |
38-
${{ runner.os }}-go-
3930
- name: Import GPG Key
4031
id: import_gpg
4132
uses: crazy-max/ghaction-import-gpg@v6

0 commit comments

Comments
 (0)