Merge pull request #5880 from abitrolly/patch-2

Make `find` ignore dot files
This commit is contained in:
OpenShift Merge Robot
2020-04-20 06:34:08 -04:00
committed by GitHub

View File

@ -36,7 +36,7 @@ PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
# ~/.local/bin is not in PATH on all systems # ~/.local/bin is not in PATH on all systems
PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit pre-commit | head -n1) PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit pre-commit | head -n1)
SOURCES = $(shell find . -name "*.go") SOURCES = $(shell find . -path './.*' -prune -o -name "*.go")
GO_BUILD=$(GO) build GO_BUILD=$(GO) build
# Go module support: set `-mod=vendor` to use the vendored sources # Go module support: set `-mod=vendor` to use the vendored sources