Skip to content

Commit 62cc13e

Browse files
committed
gha: disable setup-go cache for golangci job
Since commit e3cf217 actions/setup-go@v4 uses caching implicitly, and olangci/golangci-lint-action also uses caching. These two caches clash, resulting in multiple warnings in CI logs. The official golangci-lint-action solution is to disable caching for setup-go job (see [1]). Do the same. [1] golangci/golangci-lint-action#704 Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 083e978 commit 62cc13e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- uses: actions/setup-go@v4
3333
with:
3434
go-version: "${{ env.GO_VERSION }}"
35+
cache: false # golangci-lint-action does its own caching
3536
- name: install deps
3637
run: |
3738
sudo apt -q update

0 commit comments

Comments
 (0)