mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #35644 from thockin/build-fix-rsync
Automatic merge from submit-queue Build: Use checksum to rsync results If dependencies are touched, the Makefile will detect that tools like deepcopy-gen need to be rebuilt. It will rebuild them, but if Go decides the dependencies are not ACTUALLY updated (maybe it was a test file - known limitation of the current Makefile), it does not touch the resulting binary. The Makefile touches the result explicitly to mark that the dep change has been handled. But rsync blows away that change with the older file, and helpfully preserves the timestamp. This repeats on every build. Now rsync ignores it if the checksum is the same. Result = faster build. @wojtek-t @gmarek
This commit is contained in:
commit
d9873f4556
@ -383,7 +383,7 @@ kube::golang::place_bins() {
|
||||
if [[ -d "${full_binpath_src}" ]]; then
|
||||
mkdir -p "${KUBE_OUTPUT_BINPATH}/${platform}"
|
||||
find "${full_binpath_src}" -maxdepth 1 -type f -exec \
|
||||
rsync -pt {} "${KUBE_OUTPUT_BINPATH}/${platform}" \;
|
||||
rsync -ptc {} "${KUBE_OUTPUT_BINPATH}/${platform}" \;
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user