Skip to content

fix(release): cannot upload file to r2#76

Merged
ihexon merged 1 commit intomainfrom
fix-cannot-upload-to-s3
Feb 28, 2025
Merged

fix(release): cannot upload file to r2#76
ihexon merged 1 commit intomainfrom
fix-cannot-upload-to-s3

Conversation

@BlackHole1
Copy link
Member

目前我们在 github action 中使用的是 macos-latest,这个 image 会安装 aws cli。而在最近的更新中,github 更新了 aws cli 的版本。现在 aws cli 的版本为: 2.23.2。见: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#tools

而目前 cloudflare r2 的 s3 api 兼容层对这个版本的 cli 支持存在问题,导致在上传文件时,永远在最后一步做 hash 校验时失败。见: https://developers.cloudflare.com/r2/examples/aws/aws-cli/

通过 cloudflare 文档中给出的缓解方案来避免此问题。

同时添加 --debug 参数,以便后续如果出现其他问题,更容易定位问题。

Signed-off-by: Kevin Cui <bh@bugs.cc>
@BlackHole1 BlackHole1 requested a review from ihexon as a code owner February 28, 2025 03:32
@ihexon ihexon enabled auto-merge (squash) February 28, 2025 03:33
@ihexon ihexon merged commit 3a2d258 into main Feb 28, 2025
2 checks passed
@ihexon ihexon deleted the fix-cannot-upload-to-s3 branch February 28, 2025 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants