Commit 7a7e5e4
node: Fix generator ripgrep binary mappings and add missing architectures
The @vscode/ripgrep package postinstall script expects specific binary
variants for each architecture. This patch:
1. Adds backwards compatibility for aarch64 libc variants
- Versions < 1.13.0 used gnu variant (aarch64-unknown-linux-gnu)
- Versions >= 1.13.0 switched to musl (aarch64-unknown-linux-musl)
- Both variants exist in different ripgrep-prebuilt releases
2. Adds missing architecture mappings for ppc64, riscv64, and s390x
- These architectures are supported by @vscode/ripgrep
- Uses gnu variants (only available option for these arches)
This prevents the postinstall script from failing to find the cached
binary and attempting to download from GitHub, which fails in offline
build environments (RPM builds, air-gapped systems, etc).
The mappings now match what the postinstall script expects based on
the package version being used.
See: https://github.com/microsoft/vscode-ripgrep/blob/main/lib/postinstall.js
Assisted-by: Claude Code1 parent fc02e3d commit 7a7e5e4
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
306 | 310 | | |
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
310 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
311 | 322 | | |
312 | 323 | | |
313 | 324 | | |
| |||
0 commit comments