Skip to content

Commit

Permalink
Install test subpackages too
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jbeda committed Oct 4, 2016
1 parent 4330560 commit dd3ac00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit dd3ac00

Please sign in to comment.