Merge pull request #127753 from skitt/missing-go-env

hack: configure Go environments where necessary
This commit is contained in:
Kubernetes Prow Robot 2024-10-23 03:46:59 +01:00 committed by GitHub
commit ed696ecd20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,8 @@ set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env
cd "${KUBE_ROOT}"
if ! go run test/featuregates_linter/main.go feature-gates verify; then

View File

@ -28,6 +28,8 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
cd "${KUBE_ROOT}"
kube::golang::setup_env
RELEASE_BIN_PKGS=(
"${KUBE_ROOT}/cmd/cloud-controller-manager"
"${KUBE_ROOT}/cmd/kube-apiserver"

View File

@ -22,5 +22,9 @@ set -o pipefail
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd -P)
cd "${KUBE_ROOT}"
source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env
# convert dumped spec (see dump-spec.sh) to conformance.yaml
go run ./test/conformance/walk.go --source="${KUBE_ROOT}" ./_output/specsummaries.json > ./_output/conformance.yaml