Resolve mise aliases such as `lts` when reading mise.toml
維護者通常 7 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 58/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, node.js, typescript
研究方向
Start by tracing how mise.toml values flow from getNodeVersionFromFile into isLtsAlias and version resolution. Check the existing tests for mise version files and LTS aliases, then add coverage for node = "lts"; done means it resolves as the current LTS or returns a clear error for unsupported mise aliases.
由索引模型根據 Issue 內容生成。
描述
Description:
node-version-file: mise.toml (added in v7.1.0, #1421) reads [tools] node and passes the value through unchanged. Values that are valid for mise but are not in setup-node's version syntax then fail to resolve.
The common case is LTS:
# mise.toml
[tools]
node = "lts"
- uses: actions/[email protected]
with:
node-version-file: mise.toml
getNodeVersionFromFile returns lts. isLtsAlias only matches values that start with lts/, so lts is treated as a semver range, matches no release, and the step fails.
Proposal: when the version comes from mise.toml, translate mise's aliases to setup-node's syntax before resolving. At minimum, map lts to lts/*. Other mise-specific aliases could be handled the same way, or rejected with a clear error that names the unsupported value.
Justification:
A mise.toml is written for mise, and node = "lts" is the usual way to ask mise for the current LTS. Users who adopt the new mise.toml support expect the file they already have to work. Today the only option is to rewrite it as lts/*, which makes the file depend on setup-node's syntax instead of mise's, or to keep a separate node-version input in the workflow, which defeats the point of reading the file.
Are you willing to submit a PR?
Not at this time.
- 主要語言
- TypeScript
- 星號
- 5k
- 分支
- 1.7k
- 平均合併
- 5 天 1 小時
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
actions/setup-node 的其他 Issue
-
`mirror-token` is sent to GitHub instead of `token` when `mirror` is set可能已有人在做 @v-gowridurgad 於 10 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 82/100
actions/setup-node#1662 · 1 則留言 · 已指派 1 人 ·
維護者通常 7 天內回覆
-
feature request
難度 2/5 1-3 小時 新手友好度 65/100
actions/setup-node#1531 · 1 則留言 · 4 個 reaction ·
維護者通常 7 天內回覆
-
bug needs triage
難度 4/5 3-5 天 新手友好度 52/100
actions/setup-node#1672 ·
維護者通常 7 天內回覆
-
Provide `allow-prereleases` (or similar) option for Node.js 27 Alpha可能已有人在做 @v-priyagupta108 於 7 天前認領。 未關閉feature request
難度 3/5 1-2 天 新手友好度 62/100
actions/setup-node#1657 · 5 則留言 · 4 個 reaction · 已指派 1 人 ·
維護者通常 7 天內回覆
-
Improved error message when a required os lib is missing可能已有人在做 @OKAN-SOFTWARE 於 20 天前認領。 未關閉feature request
難度 3/5 1-2 天 新手友好度 55/100
actions/setup-node#1651 · 1 則留言 ·
維護者通常 7 天內回覆
查看 actions/setup-node 的全部 Issue
相似的 Issue
-
難度 1/5 1-3 小時 新手友好度 87/100
維護者通常 1 天內回覆
-
🛠️ dette technique
難度 2/5 1-3 小時 新手友好度 61/100
betagouv/mon-entreprise#4752 · 1 則留言 ·
維護者通常 5 天內回覆
-
type: bug
難度 2/5 1-3 小時 新手友好度 67/100
franciscoBSalgueiro/en-croissant#1111 ·
維護者通常 2 天內回覆
-
area/providers type/feature version/v2
難度 2/5 1-3 小時 新手友好度 68/100
anomalyco/opencode#64845 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆