Merge pull request #31623 from sttts/sttts-mac-ln-T

Automatic merge from submit-queue

Fix build on Mac

Use portable `ln -snf` instead of `-sTf` (introduced in https://github.com/kubernetes/kubernetes/pull/31525).
This commit is contained in:
Kubernetes Submit Queue
2016-08-30 02:16:55 -07:00
committed by GitHub

View File

@@ -266,7 +266,7 @@ kube::golang::create_gopath_tree() {
# TODO: This symlink should be relative.
if [[ ! -e "${go_pkg_dir}" || "$(readlink ${go_pkg_dir})" != "${KUBE_ROOT}" ]]; then
ln -sTf "${KUBE_ROOT}" "${go_pkg_dir}"
ln -snf "${KUBE_ROOT}" "${go_pkg_dir}"
fi
}