Skip to content

Commit e71ff9e

Browse files
authored
Merge pull request kubernetes#88916 from dims/use-go-bin-data-from-vendor
Use go-bindata built from vendor/
2 parents 71ad0a9 + e93c6a6 commit e71ff9e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

hack/generate-bindata.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ if [[ ! -d "${KUBE_ROOT}/pkg" ]]; then
2828
exit 1
2929
fi
3030

31-
# kube::golang::build_kube_toolchain installs the vendored go-bindata in
32-
# $GOPATH/bin, so make sure that's explicitly part of our $PATH.
33-
export PATH="${KUBE_OUTPUT_BINPATH}:${PATH}"
31+
# Ensure that we find the binaries we build before anything else.
32+
export GOBIN="${KUBE_OUTPUT_BINPATH}"
33+
PATH="${GOBIN}:${PATH}"
3434

35-
if ! which go-bindata &>/dev/null ; then
36-
echo "Cannot find go-bindata."
37-
exit 5
38-
fi
35+
# Install tools we need, but only from vendor/...
36+
go install k8s.io/kubernetes/vendor/github.com/go-bindata/go-bindata/...
3937

4038
# run the generation from the root directory for stable output
4139
pushd "${KUBE_ROOT}" >/dev/null

0 commit comments

Comments
 (0)