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

Can't install prerelease RubyGems

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

@ntkme 已经在做这个了。

开始于 2026年10月9日。

  • #946 来自 @ntkme —— 未关闭

评估

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

调研方向

拒绝 RubyGems 预发布版本的版本比较位于 rubygems.js 第 23 行附近,那里使用了 semver 模块。请阅读该比较,并追踪 4.1.0.beta2 这样的版本是如何到达那里的。当 4.1.0.beta2 这样的 RubyGems 预发布版本能够被接受并安装,且现有的正式版本处理仍然正常工作时,即为完成。

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

描述

Ensure the following before filing this issue
  • I verified it reproduces with the latest version with - uses: ruby/setup-ruby@v1 (see Versioning policy)

  • I tried to reproduce the issue locally by following the workflow steps (including all commands done by ruby/setup-ruby, except for Downloading Ruby & Extracting Ruby),
    and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)

Are you running on a GitHub-hosted runner or a self-hosted runner?

GitHub-hosted runner

Link to the failed workflow job (must be a public workflow job, so the necessary information is available)

https://github.com/haines/pg-aws_rds_iam/actions/runs/37953659583/job/113898580616#step:3:54

Any other notes?

The prerelease version format for RubyGems (e.g. 4.1.0.beta2) is not valid semantic versioning, so the semver module (correctly) reports that it is invalid. The comparison needs to take this into account in order for this action to be able to install such a version.

主要语言
JavaScript
星标
996
派生
373
平均合并
48 分钟
30 天内合并 PR
7

环境准备

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

从这里开始

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

ruby/setup-ruby 的其他 Issue

查看 ruby/setup-ruby 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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