Bug:Windows 下 Bun 换源功能异常
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing the Bun handling and command execution paths used by chsrc get bun and chsrc set bun, then inspect the source detection shared with the js/javascript/node/nodejs aliases. Reproduce the reported commands on Windows 11 PowerShell with Bun 1.4.3 installed through Scoop. Done when get reports the current source and set detects available mirrors or clearly reports that none are configured.
Written by the indexing model from the issue text.
Description
你操作了什么?
在 Windows PowerShell 环境下,尝试使用 chsrc 查看 Bun 当前源并自动换源。
- 执行
chsrc get bun - 执行
chsrc set bun - 执行
chsrc ls bun查看 Bun 的支持情况
发生了什么?
执行 chsrc get bun 时出现以下错误:
The system cannot find the file specified.
[chsrc 运行] x 命令执行失败,退出状态: 1
chsrc: 关键错误,强制结束
执行 chsrc set bun 时出现以下提示:
[chsrc 测速] 进行中
chsrc: 当前 js/javascript/node/nodejs 无任何可用源,请联系维护者: chsrc issue
但执行 chsrc ls bun 时,可以看到 Bun 支持 Get、Reset、UserDefine,以及项目级和用户级换源功能。
目前无法确定是命令调用异常、配置问题还是 Bun 换源食谱实现问题。
本应该怎么样?
希望 chsrc get bun 能正常显示 Bun 当前的源状态,chsrc set bun 能正常检测可用镜像并完成换源。
如果目前没有预设镜像,希望能给出明确的提示,而不是出现上述错误。
chsrc 版本
v0.2.7
你使用的是哪个操作系统?
Windows
OS 版本 / OS 发行版
Windows11,PowerShell
Log 输出
命令:chsrc get bun
The system cannot find the file specified.
[chsrc 运行] x 命令执行失败,退出状态: 1
chsrc: 关键错误,强制结束
命令:chsrc set bun
[chsrc 测速] 进行中
chsrc: 当前 js/javascript/node/nodejs 无任何可用源,请联系维护者: chsrc issue
Bun 版本:1.4.3
Bun 安装方式:Scoop
防止重复问题
- 我已在项目中搜索过类似的 issue
- Dominant language
- C
- Stars
- 6.9k
- Forks
- 285
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RubyMetric/chsrc
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
RubyMetric/chsrc#396 ·
-
是否考虑新增自定义源增加别名Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
RubyMetric/chsrc#398 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 22/100
RubyMetric/chsrc#397 ·
-
[arch] 多次 chsrc set arch 后 mirrorlist 累积旧 Server 行,upstream 官方源地址无效May be free again @yayoinoyume claimed this 36 days ago, and no pull request is open. OpenLinux os_dish 源
RubyMetric/chsrc#393 · 2 comments · 2 reactions · 1 assignee ·
-
`ls` 命令呈现 "可用源" 的界面有改进空间May be free again @ccmywish claimed this 38 days ago, and no pull request is open. Open改善加强
RubyMetric/chsrc#389 · 6 comments · 1 assignee ·
All issues in RubyMetric/chsrc
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
compiler-explorer/compiler-explorer#9272 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
semantic-reasoning/wirelog#2163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Xinyuan-LilyGO/T-Display-S3#352 · 3 comments ·
-
documentation severity/minor
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day