Skip to content

Commit

Permalink
Fully resolve tmpdir in verify scripts, since it might be a symlink o…
Browse files Browse the repository at this point in the history
…n macOS
  • Loading branch information
ixdy committed Apr 6, 2018
1 parent 489178d commit 3ed87e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/verify-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-godeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 3ed87e2

Please sign in to comment.