Commit dd3ac00c authored by Joe Beda's avatar Joe Beda

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.
parent 4330560b
...@@ -547,7 +547,7 @@ kube::golang::build_binaries_for_platform() { ...@@ -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}" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment