Skip to content

Commit

Permalink
ci: update golangci-lint to version v1.54.2 (#3697)
Browse files Browse the repository at this point in the history
* ci: change `golangci-lint` setup to compile the binary

Pre-compiled binary for the current version doesn't support the features
released with Go `1.21` because is compiled with a previous Go version.
This change makes sure the binary is cached and compiled with the right
Go version.

* ci: update `golangci-lint` to version `v1.54.2`

Depguard is disabled to avoid "not allowed from list" errors.
  • Loading branch information
jeronimoalbi authored Oct 16, 2023
1 parent 3c9f058 commit eff98f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ jobs:
**/*.go
go.mod
go.sum
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v3
if: env.GIT_DIFF
with:
version: v1.52.1
version: v1.54.2
install-mode: goinstall
args: --timeout 10m
github-token: ${{ secrets.github_token }}
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ linters:
enable:
- bodyclose
- decorder
- depguard
# - depguard
- dogsled
- dupword
# - errcheck
Expand Down

0 comments on commit eff98f3

Please sign in to comment.