From: Simon Ruderich Date: Mon, 8 Aug 2022 05:48:28 +0000 (+0200) Subject: ci: use fixed versions for staticcheck and golangci-lint X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=commitdiff_plain;h=791f34212ebd19a9c79c9bd1157f590f4b24f5c2 ci: use fixed versions for staticcheck and golangci-lint 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. --- diff --git a/ci/run b/ci/run index f858a46..88fe0cc 100755 --- 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?