From 791f34212ebd19a9c79c9bd1157f590f4b24f5c2 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 8 Aug 2022 07:48:28 +0200 Subject: [PATCH] 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. --- ci/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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? -- 2.45.2