Fully resolve tmpdir in verify scripts, since it might be a symlink on macOS

pull/8/head
Jeff Grafton 2018-04-06 14:09:03 -07:00
parent 489178d270
commit 3ed87e2ac2
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ fi
# TODO(spxtr): Remove this line once Bazel is the only way to build.
rm -f "${KUBE_ROOT}/pkg/generated/openapi/zz_generated.openapi.go"
_tmpdir="$(mktemp -d -t verify-bazel.XXXXXX)"
_tmpdir="$(kube::realpath $(mktemp -d -t verify-bazel.XXXXXX))"
kube::util::trap_add "rm -rf ${_tmpdir}" EXIT
_tmp_gopath="${_tmpdir}/go"

View File

@ -35,7 +35,7 @@ kube::util::ensure_godep_version
if [[ -z ${TMP_GOPATH:-} ]]; then
# Create a nice clean place to put our new godeps
_tmpdir="$(mktemp -d -t gopath.XXXXXX)"
_tmpdir="$(kube::realpath $(mktemp -d -t gopath.XXXXXX))"
else
# reuse what we might have saved previously
_tmpdir="${TMP_GOPATH}"