Resolve mise aliases such as `lts` when reading mise.toml
Maintainer thường phản hồi trong vòng 7 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, node.js, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 5k
- Fork
- 1.7k
- Merge trung bình
- 5 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của actions/setup-node
-
`mirror-token` is sent to GitHub instead of `token` when `mirror` is setCó thể đã có người làm @v-gowridurgad đã nhận 10 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
actions/setup-node#1662 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
actions/setup-node#1531 · 1 bình luận · 4 reaction ·
Maintainer thường phản hồi trong vòng 7 ngày
-
bug: pnpm cache hits provide little install speedup because lockfile verification is not cachedĐang mởbug needs triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
actions/setup-node#1672 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Provide `allow-prereleases` (or similar) option for Node.js 27 AlphaCó thể đã có người làm @v-priyagupta108 đã nhận 7 ngày trước. Đang mởfeature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
actions/setup-node#1657 · 5 bình luận · 4 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Improved error message when a required os lib is missingCó thể đã có người làm @OKAN-SOFTWARE đã nhận 20 ngày trước. Đang mởfeature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
actions/setup-node#1651 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 7 ngày
Tất cả issue của actions/setup-node
Issue tương tự
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysCó thể đã có người làm @pcbeingused333 đã nhận hôm nay. Đang mởBug db: d1-sqlite Payload OSS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
payloadcms/payload#19766 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
device-management-toolkit/sample-web-ui#3711 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
elastic/kibana#306401 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
agentes-chat/agentes-chat#927 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabCó thể đã có người làm @seenimohamed đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ardia-browser/ardia#2769 ·
Maintainer thường phản hồi trong vòng 1 ngày