mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 12:46:06 +00:00
hack: Use zeitgeist instead of cmd/verifydependencies
Signed-off-by: Stephen Augustus <foo@auggie.dev>
This commit is contained in:
@@ -26,6 +26,19 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
kube::golang::verify_go_version
|
||||
|
||||
cd "${KUBE_ROOT}"
|
||||
# Ensure that we find the binaries we build before anything else.
|
||||
export GOBIN="${KUBE_OUTPUT_BINPATH}"
|
||||
PATH="${GOBIN}:${PATH}"
|
||||
|
||||
go run cmd/verifydependencies/verifydependencies.go "${KUBE_ROOT}"/build/dependencies.yaml
|
||||
# Install zeitgeist
|
||||
cd "${KUBE_ROOT}/hack/tools"
|
||||
GO111MODULE=on go install sigs.k8s.io/zeitgeist
|
||||
cd -
|
||||
|
||||
# Prefer full path for running zeitgeist
|
||||
ZEITGEIST_BIN="$(which zeitgeist)"
|
||||
|
||||
"${ZEITGEIST_BIN}" validate \
|
||||
--local \
|
||||
--base-path "${KUBE_ROOT}" \
|
||||
--config "${KUBE_ROOT}"/build/dependencies.yaml
|
||||
|
Reference in New Issue
Block a user