Skip to content

Commit 3107c35

Browse files
99Lysclaude
andcommitted
Follow redirects when downloading MinIO client in CI
dl.min.io now responds with an HTTP 302 redirect to GitHub Releases for the mc binary. curl -O does not follow redirects, so the install script was saving the empty redirect response (141 bytes) as the mc binary and chmod +x-ing it. Subsequent steps that invoke mc fail with `/usr/local/bin/mc: line 1: a: No such file or directory`. Add -L so curl follows the redirect, and -f so it fails the script loudly if the download returns a non-2xx status instead of silently producing an invalid binary. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 95b9090 commit 3107c35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/install_minio_client.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
echo "Installing MinIO Client (mc)..."
55

66
{
7-
curl -O https://dl.min.io/client/mc/release/linux-amd64/mc &&
7+
curl -fLO https://dl.min.io/client/mc/release/linux-amd64/mc &&
88
chmod +x mc &&
99
mv mc /usr/local/bin/
1010
} && echo "MinIO Client installed successfully." || {

0 commit comments

Comments
 (0)