From 7f8899afc78f479901c8106388a9a71da3cf17b6 Mon Sep 17 00:00:00 2001 From: Damian Badura <45110612+dbadura@users.noreply.github.com> Date: Wed, 8 Jun 2022 13:47:03 +0200 Subject: [PATCH] Update outdated golangci-lint script (#14452) * update outdated script * fix version --- hack/verify-lint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/verify-lint.sh b/hack/verify-lint.sh index 4e9d79e4b0e8..5e6912bc4eaf 100755 --- a/hack/verify-lint.sh +++ b/hack/verify-lint.sh @@ -36,7 +36,7 @@ golangci::verify_installation() { echo -e "${RED}x Installed golangci-lint version (${CURRENT_VERSION}) incorrect${NC}" echo -e "Please update to a version equal or greater than ${GOLANGCI_LINT_VERSION}" echo -e "Run the following command to update:" - echo -e "${INVERTED}curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b ${GOLANGCI_LINT_VERSION}${NC}" + echo -e "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}" exit 1 fi ## installed and version is correct @@ -46,7 +46,7 @@ golangci::verify_installation() { # not installed echo -e "${RED}x golangci-lint not installed${NC}" echo -e "Run the following command to install:" - echo -e "${INVERTED}curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b ${GOLANGCI_LINT_VERSION}${NC}" + echo -e "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}" } golangci::run_checks() {