Unknown --os or --arch still fetches the releases before failing
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 rr get 命令和现有的 --location 校验开始,它已经会在发出任何请求之前拒绝错误输入。当前,未知的 --os/--arch 路径只会记录一条警告,然后仍然获取 release。使用 rr get --os=plan9 复现问题,并确认 release 请求是否发生在失败之前。完成标准是:未知的操作系统或架构在任何 GitHub API 调用之前就失败,并且 #66 中的 FailureTest::rejectsUnknownPlatformWithoutRequests 通过。请先确认 #49(DLoad)是否会改变 release 查询。
由索引模型根据 Issue 内容生成。
描述
Description
An unknown --os or --arch value is only a warning (Possibly invalid operating system (--os=plan9) option). rr get then fetches the whole release list from the GitHub API and fails only afterwards with Could not find any available RoadRunner binary version which meets criterion. Each such call spends GitHub API requests (the anonymous limit is 60 per hour) on a request that can never succeed.
Expected: an unknown OS or architecture is rejected before any request, like an invalid --location already is.
Steps to reproduce
- Run
rr get --os=plan9(or--arch=sparc). - The releases are requested before the command fails.
Additional context
Found by the acceptance tests in #66 (FailureTest::rejectsUnknownPlatformWithoutRequests). The release lookup may be replaced by DLoad in #49.
- 主要语言
- PHP
- 星标
- 30
- 派生
- 15
- 平均合并
- 45 分钟
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
roadrunner-php/cli 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
roadrunner-php/cli#69 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
roadrunner-php/cli#67 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
roadrunner-php/cli#62 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
roadrunner-php/cli#61 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
roadrunner-php/cli#60 ·
维护者通常 1 天内回复
查看 roadrunner-php/cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 2 天内回复
-
backend bug
难度 2/5 1-3 小时 新手友好度 76/100
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 63/100
smarty-php/smarty#1215 ·
-
sync-en
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复