diff --git a/hack/update-vendor.sh b/hack/update-vendor.sh index 35b1ef22c49..0f5acdebf05 100755 --- a/hack/update-vendor.sh +++ b/hack/update-vendor.sh @@ -18,6 +18,9 @@ set -o errexit set -o nounset set -o pipefail +# Go tools really don't like it if you have a symlink in `pwd`. +cd "$(pwd -P)" + KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. source "${KUBE_ROOT}/hack/lib/init.sh"