]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
ci: use fixed versions for staticcheck and golangci-lint
authorSimon Ruderich <simon@ruderich.org>
Mon, 8 Aug 2022 05:48:28 +0000 (07:48 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 8 Aug 2022 05:48:28 +0000 (07:48 +0200)
The latest version of golangci-lint only supports Go 1.19 which is not
available yet on all CI targets.

Makes the CI deterministic and prevents failures if the checks change.

ci/run

diff --git a/ci/run b/ci/run
index f858a461d3559a40cd0599a2cf0f3fa4d711aafb..88fe0cc381b8db5f7070719c9c2504f612432a9e 100755 (executable)
--- a/ci/run
+++ b/ci/run
@@ -32,9 +32,9 @@ make $flags
 make test $flags
 
 # Additional static checks only run in CI
-go install honnef.co/go/tools/cmd/staticcheck@latest
+go install honnef.co/go/tools/cmd/staticcheck@v0.3.3
 staticcheck ./...
-go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
+go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.3
 golangci-lint run
 
 test -z "$(git clean -nd)" # any untracked files left?