mirror of https://github.com/k3s-io/k3s
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
parent
4330560b6a
commit
dd3ac00c7d
|
@ -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}" \
|
||||
|
|
Loading…
Reference in New Issue