From 3866143675a2ccf15095b75b2c97b858d8ef0ab5 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 4 May 2022 15:01:23 +0200 Subject: exclude new tools vendor dir from validate We have no control over the code in the vendored files. Signed-off-by: Paul Holzinger --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8665e9af7..51b3d6d96 100644 --- a/Makefile +++ b/Makefile @@ -232,7 +232,7 @@ endif .PHONY: .gitvalidation .gitvalidation: .gopathok @echo "Validating vs commit '$(call err_if_empty,EPOCH_TEST_COMMIT)'" - GIT_CHECK_EXCLUDE="./vendor:docs/make.bat:test/buildah-bud/buildah-tests.diff" ./test/tools/build/git-validation -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..$(HEAD) + GIT_CHECK_EXCLUDE="./vendor:./test/tools/vendor:docs/make.bat:test/buildah-bud/buildah-tests.diff" ./test/tools/build/git-validation -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..$(HEAD) .PHONY: lint lint: golangci-lint @@ -254,6 +254,7 @@ gofmt: ## Verify the source code gofmt -name '.golangci.yml' -o \ -name 'Makefile' -o \ -path './vendor/*' -prune -o \ + -path './test/tools/vendor/*' -prune -o \ -path './contrib/*' -prune \ \) -exec gofmt -d -e -s -w {} \+ git diff --exit-code -- cgit v1.2.3-54-g00ecf