From dd3ac00c7d5dfa353e0e5625e6907fac992941f1 Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Thu, 1 Sep 2016 12:34:49 -0700 Subject: [PATCH] Install test subpackages too We weren't getting incremental builds because of new test only subpackages. Our voodoo combo of 'go install' and 'go test -c' didn't cache things like 'test/e2e_node/services'. Add the '-i' flag to 'go test' to install test only dependencies too. --- hack/lib/golang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index f9f56337b5..b15a170dcf 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -547,7 +547,7 @@ kube::golang::build_binaries_for_platform() { "${testpkg}" mkdir -p "$(dirname ${outfile})" - go test -c \ + go test -i -c \ "${goflags[@]:+${goflags[@]}}" \ -gcflags "${gogcflags}" \ -ldflags "${goldflags}" \