From 35c199934124c64be6dfb1a0c1c3553a411a8eb5 Mon Sep 17 00:00:00 2001 From: JATIN Date: Fri, 6 Mar 2026 11:40:12 +0530 Subject: [PATCH] documentiong ensures ripgrep (#21298) Co-authored-by: Gaurav <39389231+gsquared94@users.noreply.github.com> --- packages/core/src/tools/ripGrep.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/core/src/tools/ripGrep.ts b/packages/core/src/tools/ripGrep.ts index 000b4f0071..18a1b0c133 100644 --- a/packages/core/src/tools/ripGrep.ts +++ b/packages/core/src/tools/ripGrep.ts @@ -54,7 +54,23 @@ async function resolveExistingRgPath(): Promise { } let ripgrepAcquisitionPromise: Promise | null = null; - +/** + * Ensures a ripgrep binary is available. + * + * NOTE: + * - The Gemini CLI currently prefers a managed ripgrep binary downloaded + * into its global bin directory. + * - Even if ripgrep is available on the system PATH, it is intentionally + * not used at this time. + * + * Preference for system-installed ripgrep is blocked on: + * - checksum verification of external binaries + * - internalization of the get-ripgrep dependency + * + * See: + * - feat(core): Prefer rg in system path (#11847) + * - Move get-ripgrep to third_party (#12099) + */ async function ensureRipgrepAvailable(): Promise { const existingPath = await resolveExistingRgPath(); if (existingPath) {