Skip to content

Commit f6b55bf

Browse files
committed
Include Go version, os and arch in golangci-lint cache key
1 parent 5a270c9 commit f6b55bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/continuous-integration.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ jobs:
6262
with:
6363
path: |
6464
/home/runner/.cache/golangci-lint
65-
key: golangcilint-${{ hashFiles('**/go.sum') }}
65+
key: golangcilint-${{ runner.os }}-${{ runner.arch }}-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum')}}
6666
restore-keys: |
67+
golangcilint-${{ runner.os }}-${{ runner.arch }}-
6768
golangcilint-
6869
6970
- name: Lint

0 commit comments

Comments
 (0)