Skip to content

Commit 8ebe3c4

Browse files
committed
pin golangci-lint version in hack/verify-golint.sh
Signed-off-by: Jonathan Dobson <[email protected]>
1 parent 971fb79 commit 8ebe3c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hack/verify-golint.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
# limitations under the License.
1616

1717
set -euo pipefail
18-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
18+
LINTER_VERSION=v2.0.2
19+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${LINTER_VERSION}
1920
if [[ -z "$(command -v golangci-lint)" ]]; then
2021
echo "Cannot find golangci-lint. Installing golangci-lint..."
21-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1
22+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${LINTER_VERSION}
2223
export PATH=$PATH:$(go env GOPATH)/bin
2324
fi
2425

0 commit comments

Comments
 (0)