Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 9815a94

Browse files
committed
Makefile: Use "! -path './vendor/*'" for GOFILES
This lets us drop the grep, which may give some very slight performance increase. But mostly this just reduces the complexity of a pipe, which we've had for GOFMT since b4f2d7d (Initial asset rendering & secure api endpoint, 2016-03-21, #2). Both ! and -path are in POSIX [1]. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html
1 parent 80111c9 commit 9815a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export GOARCH:=amd64
33
export PATH:=$(PATH):$(PWD)
44

55
LOCAL_OS:=$(shell uname | tr A-Z a-z)
6-
GOFILES:=$(shell find . -name '*.go' | grep -v -E '(./vendor)')
6+
GOFILES:=$(shell find . -name '*.go' ! -path './vendor/*')
77
LDFLAGS=-X github.com/kubernetes-incubator/bootkube/pkg/version.Version=$(shell $(CURDIR)/build/git-version.sh)
88
TERRAFORM:=$(shell command -v terraform 2> /dev/null)
99

0 commit comments

Comments
 (0)