From 2e0e93fb8498cc5ce04f138326aaf7a695c89252 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 8 Sep 2022 11:53:07 +0300 Subject: [PATCH] scripts/test-infra: bump golangci-lint to v1.49.0 Update to the latest version, supporting golang v1.19. Also make the verify script a tad more verbose. --- scripts/test-infra/verify.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/test-infra/verify.sh b/scripts/test-infra/verify.sh index e576867d8..6c64a8860 100755 --- a/scripts/test-infra/verify.sh +++ b/scripts/test-infra/verify.sh @@ -2,7 +2,7 @@ # Install deps gobinpath="$(go env GOPATH)/bin" -curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.45.2 +curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.49.0 export PATH=$PATH:$(go env GOPATH)/bin curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s -- --version v3.7.1 @@ -12,8 +12,13 @@ curl -L https://dl.k8s.io/release/v1.22.1/bin/linux/amd64/kubectl -o "$kubectl" chmod 755 "$kubectl" # Run verify steps +echo "Checking gofmt" make gofmt-verify + +echo "Running golangci-lint" make ci-lint + +echo "Running Helm lint" make helm-lint # Check that repo is clean