gemini-cli: fix ripgrep path (#478302)

This commit is contained in:
Aleksana
2026-01-09 06:05:46 +00:00
committed by GitHub
+4
View File
@@ -50,6 +50,10 @@ buildNpmPackage (finalAttrs: {
# Remove node-pty dependency from packages/core/package.json
${jq}/bin/jq 'del(.optionalDependencies."node-pty")' packages/core/package.json > packages/core/package.json.tmp && mv packages/core/package.json.tmp packages/core/package.json
# Fix ripgrep path for SearchText; ensureRgPath() on its own may return the path to a dynamically-linked ripgrep binary without required libraries
substituteInPlace packages/core/src/tools/ripGrep.ts \
--replace-fail "await ensureRgPath();" "'${lib.getExe ripgrep}';"
# Ideal method to disable auto-update
sed -i '/disableAutoUpdate: {/,/}/ s/default: false/default: true/' packages/cli/src/config/settingsSchema.ts