bonsai makefile - use new option for old no-clobber behaviour

Apparently (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62572) coreutils have changed `mv -n` to throw an error now instead of working silently, therefore our build was failing on Mac when Github Action switched from Ubuntu 22 to 24.
`--update=none` seems to restore the old behaviour.
This commit is contained in:
Andrej730
2025-01-14 15:33:41 +05:00
parent a50973ede7
commit adb61c5a16
+1 -6
View File
@@ -330,12 +330,7 @@ endif
# Use '-n' as on macos x86-64 doesn't have a binary wheel and it autoincludes 'cp311'.
prev_whl_name=$$(find build/bonsai/wheels/tzfpy-*.whl); \
whl_name=$$(echo $$prev_whl_name | sed "s/-cp39-/-cp$(PYNUMBER)-/"); \
echo "$$prev_whl_name $$whl_name"; \
if [ "$$(realpath $$prev_whl_name)" = "$$(realpath $$whl_name)" ]; then \
echo "Source and destination are the same file. Skipping move."; \
else \
mv -n "$$prev_whl_name" "$$whl_name"; \
fi
mv --update=none "$$prev_whl_name" "$$whl_name";
ifneq ($(PLATFORM), linux)
# Safeguard: in case one of `pip download` will break,