Merge pull request #2021 from cevich/renovate_golang_ci_lint

Help Renovate manage the golangci-lint version
This commit is contained in:
Chris Evich
2023-06-22 14:31:14 -04:00
committed by GitHub
2 changed files with 6 additions and 8 deletions

View File

@@ -49,11 +49,4 @@
/************************************************* /*************************************************
*** Repository-specific configuration options *** *** Repository-specific configuration options ***
*************************************************/ *************************************************/
// Don't leave dep. update. PRs "hanging", assign them to people.
"assignees": ["containers/image-maintainers"], // same for skopeo
/*************************************************
***** Golang-specific configuration options *****
*************************************************/
} }

View File

@@ -24,6 +24,11 @@ GOBIN := $(shell $(GO) env GOBIN)
GOOS ?= $(shell go env GOOS) GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH) GOARCH ?= $(shell go env GOARCH)
# N/B: This value is managed by Renovate, manual changes are
# possible, as long as they don't disturb the formatting
# (i.e. DO NOT ADD A 'v' prefix!)
GOLANGCI_LINT_VERSION := 1.53.2
ifeq ($(GOBIN),) ifeq ($(GOBIN),)
GOBIN := $(GOPATH)/bin GOBIN := $(GOPATH)/bin
endif endif
@@ -183,7 +188,7 @@ shell:
tools: tools:
if [ ! -x "$(GOBIN)/golangci-lint" ]; then \ if [ ! -x "$(GOBIN)/golangci-lint" ]; then \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.52.2 ; \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v$(GOLANGCI_LINT_VERSION) ; \
fi fi
check: validate test-unit test-integration test-system check: validate test-unit test-integration test-system