From 50bdc987545843bdbdad4fbec19971a727d1ad32 Mon Sep 17 00:00:00 2001 From: Eddie Zaneski Date: Wed, 9 Mar 2022 18:06:48 -0700 Subject: [PATCH] Add env to verify-typecheck for serial execution Signed-off-by: Eddie Zaneski --- hack/verify-typecheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/verify-typecheck.sh b/hack/verify-typecheck.sh index 78117eee334..bd75e3e7b28 100755 --- a/hack/verify-typecheck.sh +++ b/hack/verify-typecheck.sh @@ -34,8 +34,9 @@ make --no-print-directory -C "${KUBE_ROOT}" generated_files # that library doesn't work well with multiple modules. Until that is done, # force this tooling to run in a fake GOPATH. ret=0 +TYPECHECK_SERIAL="${TYPECHECK_SERIAL:-false}" hack/run-in-gopath.sh \ - go run test/typecheck/main.go "$@" || ret=$? + go run test/typecheck/main.go "$@" "--serial=$TYPECHECK_SERIAL" || ret=$? if [[ $ret -ne 0 ]]; then echo "!!! Type Check has failed. This may cause cross platform build failures." >&2 echo "!!! Please see https://git.k8s.io/kubernetes/test/typecheck for more information." >&2