.phar assets cannot be opened, and a failed config generation still writes .rr.yaml
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 src/Archive/Factory.php 开始,其中约第 95 行将 .phar 扩展名映射到 PharArchive,然后阅读 PharArchive,看它如何调用 PharData。在 src/GetBinaryCommand.php 中,约第 216 行的 installConfig() 会输出 Generator::generate() 的错误,但仍会执行到 file_put_contents;MakeConfigCommand 展示了需要照搬的 FAILURE 返回值。完成标准是:.phar 不再进入 PharData,且生成失败时不写入 .rr.yaml。开始之前请先确认 #49 是否会删除这段代码。
由索引模型根据 Issue 内容生成。
描述
Description
Two smaller defects found while covering the package with tests. Neither shows up in normal use today.
.pharassets cannot be opened.Archive\Factorymaps the.pharextension toPharArchive, which opens the file withPharData.PharDatarefuses that extension:Cannot create phar '.../rr.phar', file extension (or combination) not recognised or the directory does not exist. RoadRunner does not publish.pharassets, so this matcher can never succeed in practice..rr.yamlis written even when generation fails. InGetBinaryCommand::installConfig(), the error is printed whenGenerator::generate()throws, but execution continues tofile_put_contents($to, $config)with$configundefined. By reading the code, that would emit an undefined-variable warning and write an empty.rr.yaml.MakeConfigCommandreturnsFAILUREin the same situation. None of the bundled sections throw today, so this path is not reachable with the built-in plugins.
Additional context
Archive handling and binary installation may be replaced by DLoad in #49, in which case this code goes away.
- 主要语言
- 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 小时 新手友好度 75/100
roadrunner-php/cli#68 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
roadrunner-php/cli#67 ·
维护者通常 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 小时 新手友好度 78/100
components-web-app/api-components-bundle#403 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
mollie/PrestaShop#1566 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
components-web-app/docs#193 ·
-
docs: add Python and PHP examples to docs/api.md可能已有人在做 @gaurika-analyst 今天认领。 未关闭documentation good first issue
难度 2/5 1-3 小时 新手友好度 85/100
djazairdev/wilayas#12 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
endoflife-date/endoflife.date#11314 ·
维护者通常 1 天内回复