Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/scripts/reconcile_platform_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ echo "Platform: ${PLATFORM_BACKEND}/${PLATFORM_ARCHITECTURE}"
echo "Last contiguous build: ${last_built:-none}"
echo "Commits requiring reconciliation: ${#commits[@]}"

# "${commits[@]}" on a genuinely empty array trips "unbound variable" under
# `set -u` on bash < 4.4 (macOS system /bin/bash is 3.2.57); ${#commits[@]}
# is safe either way, so gate the loop on the count instead.
if ((${#commits[@]} > 0)); then
for commit in "${commits[@]}"; do
restore_tracked_build_changes
git checkout --detach "$commit"
Expand Down Expand Up @@ -229,6 +233,7 @@ for commit in "${commits[@]}"; do

printf '%s\n' "$commit" | "$rclone" rcat "$state_remote"
done
fi

restore_tracked_build_changes
git checkout --detach "$target_commit"
Expand Down
Loading