mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Use go-bindata built from vendor/
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
61847eab61
commit
e93c6a67d5
@ -28,14 +28,12 @@ if [[ ! -d "${KUBE_ROOT}/pkg" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# kube::golang::build_kube_toolchain installs the vendored go-bindata in
|
# Ensure that we find the binaries we build before anything else.
|
||||||
# $GOPATH/bin, so make sure that's explicitly part of our $PATH.
|
export GOBIN="${KUBE_OUTPUT_BINPATH}"
|
||||||
export PATH="${KUBE_OUTPUT_BINPATH}:${PATH}"
|
PATH="${GOBIN}:${PATH}"
|
||||||
|
|
||||||
if ! which go-bindata &>/dev/null ; then
|
# Install tools we need, but only from vendor/...
|
||||||
echo "Cannot find go-bindata."
|
go install k8s.io/kubernetes/vendor/github.com/go-bindata/go-bindata/...
|
||||||
exit 5
|
|
||||||
fi
|
|
||||||
|
|
||||||
# run the generation from the root directory for stable output
|
# run the generation from the root directory for stable output
|
||||||
pushd "${KUBE_ROOT}" >/dev/null
|
pushd "${KUBE_ROOT}" >/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user