Skip to content

Commit 927dce3

Browse files
committed
ci: skip-cache for golangci-lint task
Workaround for: golangci/golangci-lint-action#807
1 parent 8906feb commit 927dce3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ jobs:
1616
uses: actions/setup-go@v4
1717
with:
1818
go-version: '1.21.6'
19-
# during the golangci-lint execution, many files are extracted
20-
# which conflict with those which are cached by the go setup
21-
# and cause an insane amount of log spam.
22-
# This is an ongoing issue with the golangci-lint action, and
23-
# so for now we won't cache the Go artifacts:
24-
# https://github.com/golangci/golangci-lint-action/issues/807
2519
cache: false
2620

2721
- name: Verify Go Mod
@@ -38,6 +32,14 @@ jobs:
3832

3933
- name: Run golangci-lint
4034
uses: golangci/[email protected]
35+
with:
36+
# during the golangci-lint execution, many files are extracted
37+
# which conflict with those which are cached by the go setup
38+
# and cause an insane amount of log spam.
39+
# This is an ongoing issue with the golangci-lint action, and
40+
# so for now we won't cache the Go artifacts:
41+
# https://github.com/golangci/golangci-lint-action/issues/807
42+
skip-cache: true
4143

4244
# - name: Test
4345
# run: go test -v ./...

0 commit comments

Comments
 (0)