Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ jobs:
if: steps.npm-cache.outputs.cache-hit != 'true'
env:
XDG_CACHE_HOME: .cache
- run: npm run postinstall
env:
XDG_CACHE_HOME: .cache
- run: npm test
- name: Build
run: node scripts/build.js
3 changes: 0 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ jobs:
if: steps.npm-cache.outputs.cache-hit != 'true'
env:
XDG_CACHE_HOME: .cache
- run: npm run postinstall
env:
XDG_CACHE_HOME: .cache
- run: npm test
- name: Build
run: node scripts/build.js
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ jobs:
if: steps.npm-cache.outputs.cache-hit != 'true'
env:
XDG_CACHE_HOME: .cache
- run: npm run postinstall
env:
XDG_CACHE_HOME: .cache
- run: npm test
- run: node scripts/build.js
- run: npm publish --access public
Expand Down
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A module for using [ripgrep](https://github.com/BurntSushi/ripgrep/) in a Node project.

Same as [vscode-ripgrep](https://github.com/microsoft/vscode-ripgrep), but fixes the github rate limiting error `Downloading ripgrep failed: Error: Request failed: 403` by downloading the files directly instead of also using the github rest api.
This package re-exports `rgPath` from [vscode-ripgrep](https://github.com/microsoft/vscode-ripgrep).

## Install

Expand All @@ -21,13 +21,6 @@ const childProcess = spawn(rgPath, ['abc', '.'], {
})
```

## Environment Variables

- `RIPGREP_PREBUILT_BINARIES_MIRROR`: Specify a custom mirror URL for downloading ripgrep prebuilt binaries. This is useful for users in regions where GitHub releases are slow or inaccessible, or for organizations using internal mirrors.
- **Default**: `https://github.com/microsoft/ripgrep-prebuilt/releases/download`
- **Example**: `export RIPGREP_PREBUILT_BINARIES_MIRROR=https://your-mirror.com/ripgrep-prebuilt/releases/download`
- **Note**: The mirror URL should follow the same path structure as the official repository, with binaries available at `{mirror-url}/{version}/ripgrep-{version}-{target}`

## Credits

This project is very much based on https://github.com/microsoft/vscode-ripgrep by Microsoft.
Loading
Loading