switch from rsync to cp, drop rsync requirement

This commit is contained in:
Benjamin Elder 2025-10-15 21:00:38 -07:00
parent e71aa02f96
commit feeeb4aa19
2 changed files with 1 additions and 9 deletions

View file

@ -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."

View file

@ -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
}