mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #127753 from skitt/missing-go-env
hack: configure Go environments where necessary
This commit is contained in:
commit
ed696ecd20
@ -26,6 +26,8 @@ set -o pipefail
|
|||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
if ! go run test/featuregates_linter/main.go feature-gates verify; then
|
if ! go run test/featuregates_linter/main.go feature-gates verify; then
|
||||||
|
@ -28,6 +28,8 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
|||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
RELEASE_BIN_PKGS=(
|
RELEASE_BIN_PKGS=(
|
||||||
"${KUBE_ROOT}/cmd/cloud-controller-manager"
|
"${KUBE_ROOT}/cmd/cloud-controller-manager"
|
||||||
"${KUBE_ROOT}/cmd/kube-apiserver"
|
"${KUBE_ROOT}/cmd/kube-apiserver"
|
||||||
|
@ -22,5 +22,9 @@ set -o pipefail
|
|||||||
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd -P)
|
KUBE_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd -P)
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
# convert dumped spec (see dump-spec.sh) to conformance.yaml
|
# 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
|
go run ./test/conformance/walk.go --source="${KUBE_ROOT}" ./_output/specsummaries.json > ./_output/conformance.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user