mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
remove now-unecessary logic from hack/verify-bazel.sh
This commit is contained in:
parent
a1f2787897
commit
95e4a6bcda
@ -25,17 +25,6 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||
export KUBE_ROOT
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
if [[ ! -f "${KUBE_ROOT}/vendor/BUILD" ]]; then
|
||||
echo "${KUBE_ROOT}/vendor/BUILD does not exist." >&2
|
||||
echo >&2
|
||||
echo "Run ./hack/update-bazel.sh" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Remove generated files prior to running kazel.
|
||||
# TODO(spxtr): Remove this line once Bazel is the only way to build.
|
||||
rm -f "${KUBE_ROOT}/{pkg/generated,staging/src/k8s.io/apiextensions-apiserver/pkg/client,staging/src/k8s.io/kube-aggregator/pkg/client}/openapi/zz_generated.openapi.go"
|
||||
|
||||
_tmpdir="$(kube::realpath "$(mktemp -d -t verify-bazel.XXXXXX)")"
|
||||
kube::util::trap_add "chmod -R u+rw ${_tmpdir} && rm -rf ${_tmpdir}" EXIT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user