`rescript/cli/bins` checks Node.js >=20.11.0 while the packages require >=22
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, nodejs
- 领域
- cli
调研方向
从 cli/common/bins.cjs 中的版本常量和错误信息开始(约第 9 行和第 69 行),然后将它们与根目录的 engines.node、packages/@rescript/*/package.json 以及 .nvmrc 进行比较。完成的标准是运行时检查及其信息都要求 Node 22,使 Node 20.11–21 被拒绝并给出清晰的错误。检查 CI 中的 Node 版本设置,确认没有其他地方仍然期望 20.11。
由索引模型根据 Issue 内容生成。
描述
Found by differential semantic drift analysis from ece8b148 to a7721303.
What is broken
cli/common/bins.cjs L9 checks for Node.js >=20.11.0 and reports "ReScript requires Node.js >=20.11.0" (L69), while every other statement of the requirement says 22:
engines.nodeis">=22"in the rootpackage.jsonand in all fivepackages/@rescript/*/package.json(#8695);.nvmrcis22;CONTRIBUTING.mdsays v22.x or newer; CI tests "oldest supported" withnode-version: 22.
So on Node 20.11–21 the runtime check passes and users get no clear message, although the version is unsupported.
Related: #8694 and #8695, both listed in #8712; this is how the two interact, not a repeat of either.
Possible cause (speculation only)
A guess: #8694 copied the version constant from the previous bins.js while #8695 raised the requirement in parallel, and neither PR saw the other's change.
- 主要语言
- OCaml
- 星标
- 7.5k
- 派生
- 484
- 平均合并
- 19 小时 20 分钟
- 30 天内合并 PR
- 96
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rescript-lang/rescript 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
rescript-lang/rescript#8806 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
rescript-lang/rescript#8798 ·
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 58/100
rescript-lang/rescript#8757 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 40/100
rescript-lang/rescript#8753 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 22/100
rescript-lang/rescript#8733 ·
维护者通常 1 天内回复
查看 rescript-lang/rescript 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
jbacalso24/mimry#123 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
AltimateAI/altimate-code#1454 ·
维护者通常 1 天内回复
-
bug good first issue help wanted status: planned
难度 2/5 1-3 小时 新手友好度 88/100
andersthemagi/reliquary#310 ·
维护者通常 1 天内回复
-
ast_grep recommends increasing a limit that its public schema does not accept可能已有人在做 @peda-cos 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 1 天内回复