Solaris support is broken on 1.29.2
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #5167 来自 @ChrisDenton —— 已合并
评估
调研方向
The settings-file lock logic in rustup fails on Solaris now that lock() was removed from the Rust standard library (rust-lang/rust#157509). Start by finding where the settings.toml file lock is taken and study the Cargo workaround in rust-lang/cargo#17110 for an alternative locking approach. 'Done' means rustup installs successfully on Solaris 11.4 as in the linked libc CI run, verified by reproducing the installer flow there. Needs platform/file-locking familiarity, so better for someone with Solaris or systems-rust experience than a true first issue.
由索引模型根据 Issue 内容生成。
描述
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
Rustup v1.29.2 is broken atm, like:
+ curl --proto '=https' --tlsv1.2 -sSf --retry 5 https://sh.rustup.rs/
info: downloading installer
error: could not write settings file: '/root/.rustup/settings.toml': lock() not supported
Full CI log: https://github.com/rust-lang/libc/actions/runs/40071179099/job/120805372981
This is because https://github.com/rust-lang/rust/pull/157509 removed lock().
Steps
- run rustup on Solaris
Possible Solution(s)
We need to implement alternative way.
Prior art on Cargo: https://github.com/rust-lang/cargo/pull/17110
Notes
No response
Rustup version
v1.29.2
Installed toolchains
No info as it was caught on CI but it should happen on all the toolchains anyway.
OS version
Solaris 11.4-gcc
- 主要语言
- Rust
- 星标
- 7.1k
- 派生
- 1.1k
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 36
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-lang/rustup 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
enhancement O-shell
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 48/100
rust-lang/rustup#5176 · 1 条评论 ·
维护者通常 1 天内回复
-
Rustup OOM未关闭bug
难度 4/5 3-5 天 新手友好度 52/100
rust-lang/rustup#5173 · 2 条评论 ·
维护者通常 1 天内回复
-
release
难度 4/5 1-2 天 新手友好度 20/100
维护者通常 1 天内回复
相似的 Issue
-
good first issue help wanted r-docs
难度 2/5 1-3 小时 新手友好度 72/100
servo/rust-smallvec#824 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
priority middle
难度 1/5 1 小时以内 新手友好度 62/100
KATO-Hiro/AtCoderClans#12940 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
hurttlocker/o8#5112 ·