mirror of
https://github.com/containers/skopeo.git
synced 2025-05-06 15:06:27 +00:00
Help Renovate manage the golangci-lint version
It's a bit cumbersome to manage a tooling version buried deep in a command, let alone one also buried deep in a `Makefile`. Add a variable to hold the version number so renovate can easily manage it. This happens via a `regex` manager in the shared configuration include `containers/automation//renovate/defaults.json5`. Also add a helpful note/reminder to humans who may want to manually change the version for some reason. Depends on: https://github.com/containers/automation/pull/145 Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
37a81ea7a0
commit
c04ee48bcb
7
Makefile
7
Makefile
@ -24,6 +24,11 @@ GOBIN := $(shell $(GO) env GOBIN)
|
||||
GOOS ?= $(shell go env GOOS)
|
||||
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),)
|
||||
GOBIN := $(GOPATH)/bin
|
||||
endif
|
||||
@ -183,7 +188,7 @@ shell:
|
||||
|
||||
tools:
|
||||
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
|
||||
|
||||
check: validate test-unit test-integration test-system
|
||||
|
Loading…
Reference in New Issue
Block a user