mirror of
https://github.com/helm/helm.git
synced 2026-04-23 07:07:30 -04:00
Inform we use a different golangci-lint version than the CI
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
This commit is contained in:
parent
00e12b8477
commit
faa8912e36
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -129,6 +129,13 @@ test-coverage:
|
|||
|
||||
.PHONY: test-style
|
||||
test-style:
|
||||
@EXPECTED_VERSION=$$(grep GOLANGCI_LINT_VERSION .github/env | cut -d= -f2); \
|
||||
ACTUAL_VERSION=$$(golangci-lint --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1); \
|
||||
if [ "v$$ACTUAL_VERSION" != "$$EXPECTED_VERSION" ]; then \
|
||||
echo "Warning: golangci-lint version is v$$ACTUAL_VERSION (expected $$EXPECTED_VERSION from CI)"; \
|
||||
echo "To install the correct version, run:"; \
|
||||
echo " curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b \$$(go env GOPATH)/bin $$EXPECTED_VERSION"; \
|
||||
fi
|
||||
golangci-lint run ./...
|
||||
@scripts/validate-license.sh
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue