Skip to content

Commit

Permalink
ci(golangci-lint): tweak workflow to fix cache and depguard problem
Browse files Browse the repository at this point in the history
  • Loading branch information
warner authored and michaelfig committed Jun 2, 2023
1 parent 91cf51b commit b66bf7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '>=1.20'
cache: false
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# golangci-lint version and command line arguments
version: latest
# v1.52.3 has a bug that causes it to fail depguard with:
# level=error msg="[linter] depguard: create analyzer:
# couldn't expand $gostd: could not read GOROOT directory:
# open src: no such file or directory\nmust have an Allow and/or Deny package list"
version: 'v1.52.2' # FIXME: change back to latest when it is fixed
args: --timeout=3m
# for pull requests, show only new issues
only-new-issues: true

0 comments on commit b66bf7c

Please sign in to comment.