Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix realpath issue on mac #35475

Merged
merged 1 commit into from
Oct 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion hack/update-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ set -o nounset
set -o pipefail

export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"

go get -u github.com/mikedanese/gazel
"${GOPATH}/bin/gazel" -root="$(realpath ${KUBE_ROOT})"
"${GOPATH}/bin/gazel" -root="$(kube::realpath ${KUBE_ROOT})"
3 changes: 2 additions & 1 deletion hack/verify-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ set -o nounset
set -o pipefail

export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"

go get -u github.com/mikedanese/gazel
if [[ $("${GOPATH}/bin/gazel" -dry-run -root="$(realpath ${KUBE_ROOT})" |& tee /dev/stderr | wc -l) != 0 ]]; then
if [[ $("${GOPATH}/bin/gazel" -dry-run -root="$(kube::realpath ${KUBE_ROOT})" |& tee /dev/stderr | wc -l) != 0 ]]; then
echo
echo "BUILD files are not up to date"
echo "Run ./hack/update-bazel.sh"
Expand Down