From e3fa6cc2124083173d7d58c52a9e440d33d7f73d Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Wed, 28 Oct 2020 12:55:13 -0400 Subject: [PATCH] Use new version of linter --- .make/Makefile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.make/Makefile.go b/.make/Makefile.go index 132fc07..5f9b333 100644 --- a/.make/Makefile.go +++ b/.make/Makefile.go @@ -42,9 +42,9 @@ install-go: ## Install the application (Using Native Go) lint: ## Run the golangci-lint application (install if not found) @#Travis (has sudo) - @if [ "$(shell command -v golangci-lint)" = "" ] && [ $(TRAVIS) ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.31.0 && sudo cp ./bin/golangci-lint $(go env GOPATH)/bin/; fi; + @if [ "$(shell command -v golangci-lint)" = "" ] && [ $(TRAVIS) ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.32.0 && sudo cp ./bin/golangci-lint $(go env GOPATH)/bin/; fi; @#AWS CodePipeline - @if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(CODEBUILD_BUILD_ID)" != "" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.31.0; fi; + @if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(CODEBUILD_BUILD_ID)" != "" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.32.0; fi; @#Brew - MacOS @if [ "$(shell command -v golangci-lint)" = "" ] && [ "$(shell command -v brew)" != "" ]; then brew install golangci-lint; fi; @echo "running golangci-lint..."