Skip to content

Commit

Permalink
UPSTREAM: <carry>: Enable nested generation of k8s.io/kubernetes bindata
Browse files Browse the repository at this point in the history
Also fix the install path to be relative.
  • Loading branch information
marun authored and soltysh committed Sep 8, 2021
1 parent b8155d2 commit 35c18b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hack/generate-bindata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export GOBIN="${KUBE_OUTPUT_BINPATH}"
PATH="${GOBIN}:${PATH}"

# Install tools we need, but only from vendor/...
go install k8s.io/kubernetes/vendor/github.com/go-bindata/go-bindata/go-bindata
if [[ ! "${SKIP_INSTALL_GO_BINDATA:-}" ]]; then
# Only install if being called directly to allow being called from origin in a vendored path.
GO111MODULE=off go install ./vendor/github.com/go-bindata/go-bindata/...
fi

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

0 comments on commit 35c18b7

Please sign in to comment.