Skip to content

Commit

Permalink
Rev golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-w-shaw committed Aug 30, 2023
1 parent 1aacfbb commit b09596e
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.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
libdqlite-dev \
libsqlite3-dev \
sqlite3
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
sudo snap install shfmt
- name: Download Dependencies
Expand Down
4 changes: 2 additions & 2 deletions tests/suites/static_analysis/lint_go.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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.54" ]] && [[ ${VER} != "v1.54" ]]; then
(echo >&2 -e '\nError: golangci-lint version does not match 1.54. 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 b09596e

Please sign in to comment.