You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by as...@apache.org on 2026/04/28 01:48:48 UTC
(opendal) branch main updated: ci(s3): use curl -fLO to follow redirect when downloading mc (#7429)
This is an automated email from the ASF dual-hosted git repository.
asukaminato0721 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new a5de7064a ci(s3): use curl -fLO to follow redirect when downloading mc (#7429)
a5de7064a is described below
commit a5de7064afd2da9f91c6030eb1a328c22e4486a2
Author: ForwardXu <fo...@gmail.com>
AuthorDate: Tue Apr 28 09:48:41 2026 +0800
ci(s3): use curl -fLO to follow redirect when downloading mc (#7429)
The previous 'curl -O' did not follow HTTP redirects, so only a 141-byte
redirect HTML body was saved as 'mc', causing:
./mc: line 1: a: No such file or directory
Adding -L makes curl follow the redirect and download the real binary,
while -f makes curl fail fast on HTTP errors.
---
.github/services/s3/minio_s3_with_anonymous/action.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/services/s3/minio_s3_with_anonymous/action.yml b/.github/services/s3/minio_s3_with_anonymous/action.yml
index 31c5e0851..3c529f06e 100644
--- a/.github/services/s3/minio_s3_with_anonymous/action.yml
+++ b/.github/services/s3/minio_s3_with_anonymous/action.yml
@@ -33,9 +33,10 @@ runs:
AWS_SECRET_ACCESS_KEY: "minioadmin"
AWS_EC2_METADATA_DISABLED: "true"
run: |
+ set -e
aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://test
- curl -O https://dl.min.io/client/mc/release/linux-amd64/mc
+ curl -fLO https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc alias set local http://127.0.0.1:9000/ minioadmin minioadmin
./mc anonymous set public local/test