Skip to content

Commit

Permalink
chore: updates golangci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
alesstimec committed Dec 9, 2024
1 parent 5f21f83 commit 0903627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.54.0
version: v1.60.0
args: --print-issued-lines=true

# This runs copyright-check against the codebase
Expand Down
4 changes: 2 additions & 2 deletions tools/static-analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ run_linter() {

run_go() {
VER=$(golangci-lint --version | tr -s ' ' | cut -d ' ' -f 4 | cut -d '.' -f 1,2)
if [[ ${VER} != "1.53" ]] && [[ ${VER} != "v1.53" ]]; then
(echo >&2 -e '\nError: golangci-lint version does not match 1.53. Please upgrade/downgrade to the right version.')
if [[ ${VER} != "1.60" ]] && [[ ${VER} != "v1.60" ]]; then
(echo >&2 -e '\nError: golangci-lint version does not match 1.60. Please upgrade/downgrade to the right version.')
exit 1
fi
OUT=$(golangci-lint run -c .github/golangci-lint.config.yaml 2>&1)
Expand Down

0 comments on commit 0903627

Please sign in to comment.