Commit 918ab03
feat: add binary mirror support for @lvce-editor/ripgrep package (#58)
- [x] Add mirror configuration for @lvce-editor/ripgrep package in
package.json
- [x] Test the configuration to ensure it works correctly
- [x] Verify changes don't break existing tests
- [x] Update to use RIPGREP_PREBUILT_BINARIES_MIRROR environment
variable
- [x] Update URL to use
`https://registry.npmmirror.com/-/binary/ripgrep-prebuilt` (registry
path that's directly accessible)
## Summary
Successfully added binary mirror support for `@lvce-editor/ripgrep`
package using the `RIPGREP_PREBUILT_BINARIES_MIRROR` environment
variable approach.
### Changes Made:
1. Added `RIPGREP_PREBUILT_BINARIES_MIRROR` environment variable to the
ENVS section in `package.json`
2. Updated the URL to
`https://registry.npmmirror.com/-/binary/ripgrep-prebuilt` to use the
registry path that's directly accessible instead of returning 404
3. Updated all tests to verify the environment variable is set correctly
4. All existing tests continue to pass
This approach uses the upstream package's built-in support for custom
mirrors rather than modifying package files.
<issue_title>[Feature Request]
qwen-code安装依赖失败,不知是否能够支持代理microsoft/ripgrep-prebuilt二进制包</issue_title>
><issue_description>安装qwen-code的cli工具,遇到`VError: Failed to download
**"https://github.com/microsoft/ripgrep-prebuilt/releases/download/v13.0.0-10/ripgrep-v13.0.0-10-x86_64-pc-windows-msvc.zip"`,通过deepwiki分析是依赖了qwen-code依赖`@lvce-editor/ripgrep`**,`@lvce-editor/ripgrep`包装了下载过程`https://github.com/lvce-editor/ripgrep/blob/main/src/downloadRipGrep.js`。所以能否添加
ripgrep和microsoft/ripgrep-prebuilt两个包的二进制代理</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
><comments>
><comment_new><author>@fengmk2</author>
> 好的👌</comment_new>
></comments>
>
Fixes #57
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>[Feature Request]
qwen-code安装依赖失败,不知是否能够支持代理microsoft/ripgrep-prebuilt二进制包</issue_title>
> <issue_description>安装qwen-code的cli工具,遇到`VError: Failed to download
**"https://github.com/microsoft/ripgrep-prebuilt/releases/download/v13.0.0-10/ripgrep-v13.0.0-10-x86_64-pc-windows-msvc.zip"`,通过deepwiki分析是依赖了qwen-code依赖`@lvce-editor/ripgrep`**,`@lvce-editor/ripgrep`包装了下载过程`https://github.com/lvce-editor/ripgrep/blob/main/src/downloadRipGrep.js`。所以能否添加
ripgrep和microsoft/ripgrep-prebuilt两个包的二进制代理</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> <comment_new><author>@fengmk2</author><body>
> 好的👌</body></comment_new>
> </comments>
>
</details>
Fixes #57
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/cnpm/binary-mirror-config/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>
Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>1 parent 745a3a3 commit 918ab03
2 files changed
+18
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
| |||
312 | 315 | | |
313 | 316 | | |
314 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
315 | 330 | | |
316 | 331 | | |
317 | 332 | | |
| |||
342 | 357 | | |
343 | 358 | | |
344 | 359 | | |
| 360 | + | |
345 | 361 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | 362 | | |
354 | 363 | | |
355 | 364 | | |
| |||
0 commit comments