Skip to content

Commit 980a6b5

Browse files
committed
Use direct path to go.sum
The `hashFiles("**/go.sum*)` approach walks the entire direectory tree, including after tests are run. If there are broken symlinks, it can cause the post-cache to fail.
1 parent b5e7b61 commit 980a6b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/test-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
path: |
5959
~/.cache/go-build
6060
~/go/pkg/mod
61-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
61+
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
6262
restore-keys: |
6363
${{ runner.os }}-go-
6464
- name: Install gotestsum

0 commit comments

Comments
 (0)