sync-recipe-source: fail fast on a stalled mirror (max-time 120 + speed-limit) so one hung download can't stall the whole run

This commit is contained in:
2026-07-31 23:22:23 +03:00
parent 6c25f4dd06
commit 7d020018c8
+4 -1
View File
@@ -88,7 +88,10 @@ decorrupt(){ awk '
}
}' "$1"; }
download(){ curl -sLf --retry 3 --connect-timeout 20 --max-time 600 "$1" -o "$2" 2>/dev/null; }
# --max-time 120 + --speed-limit/--speed-time: a stalled mirror fails fast (a
# module then reports DL-FAIL and is flagged) instead of hanging the whole run.
download(){ curl -sLf --retry 2 --connect-timeout 15 --max-time 120 \
--speed-limit 1024 --speed-time 30 "$1" -o "$2" 2>/dev/null; }
# Reconcile recipe blake3 to the authoritative source.tar. A vendored bump often
# left recipe blake3 stale (URL bumped, hash not), so recipe.toml's declared hash