Makefile: use hack/.packages instead of go list

go list is slow, so we memoize the list of packages in hack/.packages.
This commit is contained in:
Justin Santa Barbara 2017-09-16 23:44:31 -04:00
parent 5cb443d4a9
commit 752a9b79f1
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ GOBINDATA=$(LOCAL)/go-bindata
NODEUP=$(LOCAL)/nodeup
UID:=$(shell id -u)
GID:=$(shell id -g)
TESTABLE_PACKAGES:=$(shell go list ./... | egrep -v "k8s.io/kops/cloudmock|k8s.io/kops/vendor")
TESTABLE_PACKAGES:=$(cat hack/.packages | egrep -v "k8s.io/kops/cloudmock|k8s.io/kops/vendor")
# See http://stackoverflow.com/questions/18136918/how-to-get-current-relative-directory-of-your-makefile
MAKEDIR:=$(strip $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))"))