(curl -sfL $(PKG_GOLANGCI_LINT_SCRIPT)| sh -s -- -b ${GOPATH}/bin v${PKG_GOLANGCI_LINT_VERSION})
(curl -sfL $(PKG_GOLANGCI_LINT_SCRIPT)| sh -s -- -b $(GOENVPATH)/bin v${PKG_GOLANGCI_LINT_VERSION})
endif
endif
ifdefHAS_GOLANGCI
ifdefHAS_GOLANGCI
ifeq($(HAS_GOLANGCI_VERSION),)
ifeq($(HAS_GOLANGCI_VERSION),)
ifdefINTERACTIVE
ifdefINTERACTIVE
@echo "Warning: Your installed version of golangci-lint (interactive: ${INTERACTIVE}) differs from what we'd like to use. Switch to v${PKG_GOLANGCI_LINT_VERSION}? [Y/n]"
@echo "Warning: Your installed version of golangci-lint (interactive: ${INTERACTIVE}) differs from what we'd like to use. Switch to v${PKG_GOLANGCI_LINT_VERSION}? [Y/n]"
@read line;if[$$line=="y"];then(curl -sfL $(PKG_GOLANGCI_LINT_SCRIPT)| sh -s -- -b ${GOPATH}/bin v${PKG_GOLANGCI_LINT_VERSION});fi
@read line;if[$$line=="y"];then(curl -sfL $(PKG_GOLANGCI_LINT_SCRIPT)| sh -s -- -b $(GOENVPATH)/bin v${PKG_GOLANGCI_LINT_VERSION});fi
else
else
@echo "Warning: you're not using the same version of golangci-lint as us (v${PKG_GOLANGCI_LINT_VERSION})"
@echo "Warning: you're not using the same version of golangci-lint as us (v${PKG_GOLANGCI_LINT_VERSION})"
endif
endif
@ -215,7 +216,7 @@ endif
# - kubectl for E2E-tests (e2e)
# - kubectl for E2E-tests (e2e)
ci-setup:
ci-setup:
@echo "Installing Go tools..."
@echo "Installing Go tools..."
curl -sfL $(PKG_GOLANGCI_LINT_SCRIPT)| sh -s -- -b ${GOPATH}/bin v$(PKG_GOLANGCI_LINT_VERSION)
curl -sfL $(PKG_GOLANGCI_LINT_SCRIPT)| sh -s -- -b $(GOENVPATH)/bin v$(PKG_GOLANGCI_LINT_VERSION)