Merge pull request #125850 from dims/fix-for-typecheck-does-not-notice-compile-errors-in-test-files

Fix for typecheck doesn't notice compile errors in test files
This commit is contained in:
Kubernetes Prow Robot
2024-07-04 13:21:42 -07:00
committed by GitHub
7 changed files with 41 additions and 12 deletions

View File

@@ -26,6 +26,17 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
cd "${KUBE_ROOT}"
kube::golang::setup_env
kube::util::require-jq
if [[ $# == 0 ]]; then
# Doing it this way is MUCH faster than simply saying "all", and there doesn't
# seem to be a simpler way to express "this whole workspace".
packages=()
kube::util::read-array packages < <(
go work edit -json | jq -r '.Use[].DiskPath + "/..."'
)
set -- "${packages[@]}"
fi
ret=0
TYPECHECK_SERIAL="${TYPECHECK_SERIAL:-false}"