mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
pin gazel to v3
This commit is contained in:
parent
00e5777b66
commit
837eee43ac
@ -20,5 +20,5 @@ set -o pipefail
|
|||||||
export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
go get -u github.com/mikedanese/gazel
|
go get -u gopkg.in/mikedanese/gazel.v4/gazel
|
||||||
"${GOPATH}/bin/gazel" -root="$(kube::realpath ${KUBE_ROOT})"
|
"${GOPATH}/bin/gazel" -root="$(kube::realpath ${KUBE_ROOT})"
|
||||||
|
@ -20,8 +20,8 @@ set -o pipefail
|
|||||||
export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
go get -u github.com/mikedanese/gazel
|
go get -u gopkg.in/mikedanese/gazel.v4/gazel
|
||||||
if [[ $("${GOPATH}/bin/gazel" -dry-run -root="$(kube::realpath ${KUBE_ROOT})" 2>&1 | tee /dev/stderr | wc -l | tr -d '[:space:]') != 0 ]]; then
|
if [[ $("${GOPATH}/bin/gazel" -dry-run -print-diff -root="$(kube::realpath ${KUBE_ROOT})" 2>&1 | tee /dev/stderr | wc -l | tr -d '[:space:]') != 0 ]]; then
|
||||||
echo
|
echo
|
||||||
echo "BUILD files are not up to date"
|
echo "BUILD files are not up to date"
|
||||||
echo "Run ./hack/update-bazel.sh"
|
echo "Run ./hack/update-bazel.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user