mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Excise KUBE_GOPATH from coverage build
This commit is contained in:
parent
0af3106442
commit
8cb8535d9c
@ -729,7 +729,8 @@ kube::golang::is_instrumented_package() {
|
||||
# Echos the path to a dummy test used for coverage information.
|
||||
kube::golang::path_for_coverage_dummy_test() {
|
||||
local package="$1"
|
||||
local path="${KUBE_GOPATH}/src/${package}"
|
||||
local path
|
||||
path=$(go list -find -f '{{.Dir}}' "${package}")
|
||||
local name
|
||||
name=$(basename "${package}")
|
||||
echo "${path}/zz_generated_${name}_test.go"
|
||||
|
Loading…
Reference in New Issue
Block a user