mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-23 14:10:50 -05:00
A 504 while fetching sha256sums.txt was swallowed inside a command- substitution pipeline (set -e can't see it), leaving the expected checksum empty so the installer reported 'Checksum mismatch! Expected: Got: ...' on a perfectly valid binary. Add a download() helper with explicit retry-and-backoff (treating HTTP errors and 0-byte responses as retryable), fetch checksums to a file so failures are caught, and emit distinct errors for a failed checksum fetch vs. an actual mismatch. Add FLOCI_SKIP_CHECKSUM and FLOCI_DOWNLOAD_RETRIES escape hatches. Fixes floci-io/floci#1236