From 91c401c9648b13feb4df87121b57a22be4e800d4 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 20 Jan 2021 11:10:47 -0800 Subject: [PATCH] Update-vendor: canonicalize pwd --- hack/update-vendor.sh | 3 +++ 1 file changed, 3 insertions(+) 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"