File tree 4 files changed +7
-29
lines changed
4 files changed +7
-29
lines changed Original file line number Diff line number Diff line change
1
+ build/root/.kazelcfg.json
File renamed without changes.
Original file line number Diff line number Diff line change @@ -20,21 +20,10 @@ set -o pipefail
20
20
export KUBE_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
21
21
source " ${KUBE_ROOT} /hack/lib/init.sh"
22
22
23
- # Remove generated files prior to running gazel .
23
+ # Remove generated files prior to running kazel .
24
24
# TODO(spxtr): Remove this line once Bazel is the only way to build.
25
25
rm -f " ${KUBE_ROOT} /pkg/generated/openapi/zz_generated.openapi.go"
26
26
27
- go get -u gopkg.in/mikedanese/gazel.v17/gazel
27
+ kube::util::go_install_from_commit github.com/kubernetes/repo-infra/kazel fd3ec969104295f8484a32114ce625955a67365d
28
28
29
- for path in ${GOPATH//:/ } ; do
30
- if [[ -e " ${path} /bin/gazel" ]]; then
31
- gazel=" ${path} /bin/gazel"
32
- break
33
- fi
34
- done
35
- if [[ -z " ${gazel:- } " ]]; then
36
- echo " Couldn't find gazel on the GOPATH."
37
- exit 1
38
- fi
39
-
40
- " ${gazel} " -root=" $( kube::realpath ${KUBE_ROOT} ) "
29
+ kazel -root=" $( kube::realpath ${KUBE_ROOT} ) "
Original file line number Diff line number Diff line change @@ -20,25 +20,13 @@ set -o pipefail
20
20
export KUBE_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
21
21
source " ${KUBE_ROOT} /hack/lib/init.sh"
22
22
23
- go get gopkg.in/mikedanese/gazel.v17/gazel
24
-
25
- # Remove generated files prior to running gazel.
23
+ # Remove generated files prior to running kazel.
26
24
# TODO(spxtr): Remove this line once Bazel is the only way to build.
27
25
rm -f " ${KUBE_ROOT} /pkg/generated/openapi/zz_generated.openapi.go"
28
26
29
- for path in ${GOPATH//:/ } ; do
30
- if [[ -e " ${path} /bin/gazel" ]]; then
31
- gazel=" ${path} /bin/gazel"
32
- break
33
- fi
34
- done
35
- if [[ -z " ${gazel:- } " ]]; then
36
- echo " Couldn't find gazel on the GOPATH."
37
- exit 1
38
- fi
39
-
27
+ kube::util::go_install_from_commit github.com/kubernetes/repo-infra/kazel fd3ec969104295f8484a32114ce625955a67365d
40
28
41
- if ! " ${gazel} " -validate -print-diff -root=" $( kube::realpath ${KUBE_ROOT} ) " ; then
29
+ if ! kazel -validate -print-diff -root=" $( kube::realpath ${KUBE_ROOT} ) " ; then
42
30
echo
43
31
echo " Run ./hack/update-bazel.sh"
44
32
exit 1
You can’t perform that action at this time.
0 commit comments