From 5568372bb99d2c9fe0bd365cb9354fd41525a60d Mon Sep 17 00:00:00 2001 From: Joshua Casey Date: Fri, 10 May 2024 13:27:15 -0500 Subject: [PATCH] Do not use v for the version prefix in lint-version.txt --- hack/install-linter.sh | 8 +++----- hack/lib/lint-version.txt | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hack/install-linter.sh b/hack/install-linter.sh index 1c942acdf..e0671fb7e 100755 --- a/hack/install-linter.sh +++ b/hack/install-linter.sh @@ -11,14 +11,12 @@ cd "${ROOT}" # Print the Go version. go version -lint_version=$(cat hack/lib/lint-version.txt) +lint_version="v$(cat hack/lib/lint-version.txt)" -echo "Will install golangci-lint@${lint_version}" +echo "Installing golangci-lint@${lint_version}" -# Install the same version of the linter that is used in the CI pipelines +# Install the same version of the linter that the pipelines will use # so you can get the same results when running the linter locally. -# Whenever the linter is updated in the CI pipelines, it should also be -# updated here to make local development more convenient. go install -v "github.com/golangci/golangci-lint/cmd/golangci-lint@${lint_version}" golangci-lint --version diff --git a/hack/lib/lint-version.txt b/hack/lib/lint-version.txt index 1c55d0483..69478d187 100644 --- a/hack/lib/lint-version.txt +++ b/hack/lib/lint-version.txt @@ -1 +1 @@ -v1.58.1 +1.58.1