diff --git a/build/common.sh b/build/common.sh index bed571060ca..13d069cfb68 100755 --- a/build/common.sh +++ b/build/common.sh @@ -172,7 +172,6 @@ function kube::build::verify_prereqs() { local -r require_docker=${1:-true} kube::log::status "Verifying Prerequisites...." kube::build::ensure_tar || return 1 - kube::build::ensure_rsync || return 1 if ${require_docker}; then kube::build::ensure_docker_in_path || return 1 if kube::build::is_osx; then @@ -220,13 +219,6 @@ function kube::build::is_gnu_sed() { [[ $(sed --version 2>&1) == *GNU* ]] } -function kube::build::ensure_rsync() { - if [[ -z "$(which rsync)" ]]; then - kube::log::error "Can't find 'rsync' in PATH, please fix and retry." - return 1 - fi -} - function kube::build::ensure_docker_in_path() { if [[ -z "$(which docker)" ]]; then kube::log::error "Can't find 'docker' in PATH, please fix and retry." diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index 323fbe4197e..5fb6a82ba53 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -675,7 +675,7 @@ kube::golang::place_bins() { if [[ -d "${full_binpath_src}" ]]; then mkdir -p "${KUBE_OUTPUT_BIN}/${platform}" find "${full_binpath_src}" -maxdepth 1 -type f -exec \ - rsync -pc {} "${KUBE_OUTPUT_BIN}/${platform}" \; + cp -p {} "${KUBE_OUTPUT_BIN}/${platform}" \; fi done }