Skip to content

Commit

Permalink
[Automated] Merged refs/heads/k8s-sync-2024-08-28-2255-e151881480dfc4…
Browse files Browse the repository at this point in the history
…75e54ff5f2cbfc0d4f19ecd74a into target main
  • Loading branch information
github-actions[bot] authored Aug 29, 2024
2 parents 397ced8 + 07436fc commit 9abf223
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
default: help

# Note: This file and siblings are under github.com/vertica/vcluster/

##@ General

# The help target prints out all targets with their descriptions organized
Expand Down Expand Up @@ -47,14 +49,13 @@ $(LOCALBIN):
mkdir -p $(LOCALBIN)

GOLANGCI_LINT = $(LOCALBIN)/golangci-lint
# Make sure that whenever changing this, you also change
# vertica/make/build-container/*Dockerfile
GOLANGCI_LINT_VER ?= 1.54.2
# see [sandbox]/__golint_version__.txt
GOLANGCI_LINT_VERSION ?= 1.56.0

.PHONY: golangci-lint $(GOLANGCI_LINT)
golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint
$(GOLANGCI_LINT): $(LOCALBIN)
ifneq (${GOLANGCI_LINT_VER}, $(shell [ -f $(GOLANGCI_LINT) ] && $(GOLANGCI_LINT) version --format short 2>&1))
@echo "golangci-lint missing or not version '${GOLANGCI_LINT_VER}', downloading..."
curl --retry 10 --retry-max-time 1800 -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/v${GOLANGCI_LINT_VER}/install.sh" | sh -s -- -b ./bin "v${GOLANGCI_LINT_VER}"
ifneq (${GOLANGCI_LINT_VERSION}, $(shell [ -f $(GOLANGCI_LINT) ] && $(GOLANGCI_LINT) version --format short 2>&1))
@echo "golangci-lint missing or not version '${GOLANGCI_LINT_VERSION}', downloading..."
curl --retry 10 --retry-max-time 1800 -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/v${GOLANGCI_LINT_VERSION}/install.sh" | sh -s -- -b ./bin "v${GOLANGCI_LINT_VERSION}"
endif

0 comments on commit 9abf223

Please sign in to comment.