mirror of https://github.com/kubernetes/kops.git
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:
parent
5cb443d4a9
commit
752a9b79f1
2
Makefile
2
Makefile
|
|
@ -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)))"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue