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.
pull/6/head
Joe Beda 2016-09-01 12:34:49 -07:00
parent 4330560b6a
commit dd3ac00c7d
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ kube::golang::build_binaries_for_platform() {
"${testpkg}" "${testpkg}"
mkdir -p "$(dirname ${outfile})" mkdir -p "$(dirname ${outfile})"
go test -c \ go test -i -c \
"${goflags[@]:+${goflags[@]}}" \ "${goflags[@]:+${goflags[@]}}" \
-gcflags "${gogcflags}" \ -gcflags "${gogcflags}" \
-ldflags "${goldflags}" \ -ldflags "${goldflags}" \