Skip to content

feat: add binary mirror support for @lvce-editor/ripgrep package#58

Merged
fengmk2 merged 7 commits intomasterfrom
copilot/add-binary-proxy-support
Oct 23, 2025
Merged

feat: add binary mirror support for @lvce-editor/ripgrep package#58
fengmk2 merged 7 commits intomasterfrom
copilot/add-binary-proxy-support

Conversation

Copy link
Contributor

Copilot AI commented Oct 13, 2025

  • Add mirror configuration for @lvce-editor/ripgrep package in package.json
  • Test the configuration to ensure it works correctly
  • Verify changes don't break existing tests
  • Update to use RIPGREP_PREBUILT_BINARIES_MIRROR environment variable
  • 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)

@fengmk2 好的👌

Fixes #57

Original prompt

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)

@fengmk2 好的👌

Fixes #57


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link

coderabbitai bot commented Oct 13, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>
Copilot AI changed the title [WIP] Add binary proxy support for qwen-code installation Add binary mirror support for @lvce-editor/ripgrep package Oct 13, 2025
Copilot AI requested a review from fengmk2 October 13, 2025 03:23
@fengmk2 fengmk2 changed the title Add binary mirror support for @lvce-editor/ripgrep package feat: add binary mirror support for @lvce-editor/ripgrep package Oct 13, 2025
…ification

Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 15, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/lvce-editor/ripgrep/pulls/62
    • Triggering command: curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from fengmk2 October 15, 2025 11:31
Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>
Copilot AI requested a review from fengmk2 October 15, 2025 13:01
Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>
Copilot AI requested a review from fengmk2 October 23, 2025 03:21
@fengmk2 fengmk2 marked this pull request as ready for review October 23, 2025 03:40
@fengmk2 fengmk2 merged commit 918ab03 into master Oct 23, 2025
10 checks passed
@fengmk2 fengmk2 deleted the copilot/add-binary-proxy-support branch October 23, 2025 04:34
fengmk2 pushed a commit that referenced this pull request Oct 23, 2025
[skip ci]

## 2.18.0 (2025-10-23)

* chore: fix auto release workflow config (#59) ([745a3a3](745a3a3)), closes [#59](#59)
* chore: use npm-release.yml ([0a631e8](0a631e8))
* feat: add binary mirror support for @lvce-editor/ripgrep package (#58) ([918ab03](918ab03)), closes [#58](#58) [#57](#57) [#57](#57)
@github-actions
Copy link

🎉 This PR is included in version 2.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] qwen-code安装依赖失败,不知是否能够支持代理microsoft/ripgrep-prebuilt二进制包

2 participants