mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -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}" \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user