Skip to content

Commit

Permalink
Update outdated golangci-lint script (#14452)
Browse files Browse the repository at this point in the history
* update outdated script

* fix version
  • Loading branch information
dbadura authored Jun 8, 2022
1 parent b051ee2 commit 7f8899a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/verify-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <INSTALL_DIR> ${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
Expand All @@ -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 <INSTALL_DIR> ${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() {
Expand Down

0 comments on commit 7f8899a

Please sign in to comment.