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

--stability=rc is treated as dev

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

从 src/Environment/Stability.php 开始,其中 Stability::toInt() 将 --stability 传入的值映射为权重,并对未知输入返回 0。使查找不区分大小写,使 rc 和 RC 都解析为 RC 权重。完成标准是 --stability=rc 拒绝 3.5.0-beta.1,并且仍然接受 RC 和稳定版发布。#66 中提到了验收测试 VersionSelectionTest::prefersReleaseCandidateOverOlderBeta,在依赖它之前,请先检查它是否存在于你的分支中。

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

描述

bug

Description

--stability=rc (lower case, the spelling Composer and RoadRunner tags use) is not recognised: Stability only knows RC. The command prints Possibly invalid stability (--stability=rc) and then Stability::toInt() maps the unknown value to weight 0, so the minimum stability silently becomes dev and alpha/beta releases are accepted too.

Expected: rc and RC are the same stability, as in Composer; --stability=rc admits only RC and stable releases.

Steps to reproduce

  1. With releases v3.5.0-rc.1, v3.5.0-beta.1 and v3.4.0, run rr get --stability=rc --filter=3.5.0-beta.1.
  2. The beta is installed instead of failing the stability check; --stability=RC rejects it.

Additional context

Found by the acceptance tests in #66 (VersionSelectionTest::prefersReleaseCandidateOverOlderBeta, together with #58: lower-case -rc tags also sort below -beta ones). The release lookup may be replaced by DLoad in #49.

主要语言
PHP
星标
30
派生
15
平均合并
45 分钟
30 天内合并 PR
11

环境准备

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

从这里开始

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

roadrunner-php/cli 的其他 Issue

查看 roadrunner-php/cli 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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