Skip to content

Commit b402905

Browse files
committed
ci: add path to go.sum to actions/setup-go
I just noticed that actions/setup-go complains about the missing go.sum file: > Restore cache failed: Dependencies file is not found in /home/runner/work/sys/sys. Supported file pattern: go.sum Apparently this happens because there's no top-level go.sum file. Documentation suggests using a wild card in such a case. [The contents of these files are used as an input when calculating the cache checksum, essentially meaning if any of these files are changed, the cache will be invalidated.] Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 7d73c88 commit b402905

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
uses: actions/setup-go@v5
1313
with:
1414
go-version: ${{ matrix.go-version }}
15+
cache-dependency-path: "*/go.sum"
1516
- name: Checkout code
1617
uses: actions/checkout@v4
1718
- if: ${{ matrix.go-version == '1.18.x' }}

0 commit comments

Comments
 (0)