Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Bug:Windows 下 Bun 换源功能异常

未关闭
#399 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
bun, c, powershell
领域
cli, devtools

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

你操作了什么?

在 Windows PowerShell 环境下,尝试使用 chsrc 查看 Bun 当前源并自动换源。

  1. 执行 chsrc get bun
  2. 执行 chsrc set bun
  3. 执行 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
主要语言
C
星标
6.9k
派生
285
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

RubyMetric/chsrc 的其他 Issue

查看 RubyMetric/chsrc 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。