summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-05-04 15:01:23 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-05-04 17:11:50 +0200
commit3866143675a2ccf15095b75b2c97b858d8ef0ab5 (patch)
treed2d4461d77be802cbac1d3f9a6cb094b2c777705 /Makefile
parentf6b397bf1e5d06027319a2ac0be539d051eca801 (diff)
downloadpodman-3866143675a2ccf15095b75b2c97b858d8ef0ab5.tar.gz
podman-3866143675a2ccf15095b75b2c97b858d8ef0ab5.tar.bz2
podman-3866143675a2ccf15095b75b2c97b858d8ef0ab5.zip
exclude new tools vendor dir from validate
We have no control over the code in the vendored files. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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