makefile: update Makefile.common with newer version (#488)
authorPrometheusBot <prometheus-team@googlegroups.com>
Fri, 14 Jun 2019 09:30:25 +0000 (10:30 +0100)
committerBrian Brazil <brian.brazil@robustperception.io>
Fri, 14 Jun 2019 09:30:25 +0000 (10:30 +0100)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Makefile.common

index 6b94f83911f971d41cc607e29bd3382ab6183da2..d7aea1b86f2372a776b44594b2e3cca4ea7275f2 100644 (file)
@@ -248,7 +248,9 @@ proto:
 ifdef GOLANGCI_LINT
 $(GOLANGCI_LINT):
        mkdir -p $(FIRST_GOPATH)/bin
-       curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(FIRST_GOPATH)/bin $(GOLANGCI_LINT_VERSION)
+       curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/$(GOLANGCI_LINT_VERSION)/install.sh \
+               | sed -e '/install -d/d' \
+               | sh -s -- -b $(FIRST_GOPATH)/bin $(GOLANGCI_LINT_VERSION)
 endif
 
 ifdef GOVENDOR