Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CLI install intermittently fails with exit code 22

未关闭 适合新手
#77 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
shell
领域
ci-cd, cli

调研方向

从 src/scripts/install.sh 第 2 行附近开始,检查 curl 如何处理与 --fail 一起使用时的重试。如果可能,复现间歇性的安装失败,然后验证诸如退出代码 22 这样的 4xx 响应是否会触发预期的重试行为。

由索引模型根据 Issue 内容生成。

描述

bug

Orb version:

2.7.2 (but the install.sh is the same in latest)

What happened:

The install step simply outputs Exited with code exit status 22.

Expected behavior:

The retry mechanism should kick in instead.

Additional Information:

https://github.com/CircleCI-Public/github-cli-orb/blob/756e415340536f735b8033b9efc2caab27f6f1d5/src/scripts/install.sh#L2

As far as I can tell, curl --fail will return exit code 22 on a 4xx response, e.g. 429 rate limiting.
But the retry logic #70 was supposed to avoid that kind of problem.
--retry-all-errors could maybe be used alongside the --retry.
https://everything.curl.dev/usingcurl/downloads/retry.html#retry-on-any-and-all-errors

主要语言
Shell
星标
17
派生
30
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CircleCI-Public/github-cli-orb 的其他 Issue

查看 CircleCI-Public/github-cli-orb 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。