Skip to content

Commit 5d7a0cb

Browse files
Jatin24062005gsquared94
authored andcommitted
documentiong ensures ripgrep (google-gemini#21298)
Co-authored-by: Gaurav <39389231+gsquared94@users.noreply.github.com>
1 parent d775e79 commit 5d7a0cb

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/core/src/tools/ripGrep.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,23 @@ async function resolveExistingRgPath(): Promise<string | null> {
5454
}
5555

5656
let ripgrepAcquisitionPromise: Promise<string | null> | null = null;
57-
57+
/**
58+
* Ensures a ripgrep binary is available.
59+
*
60+
* NOTE:
61+
* - The Gemini CLI currently prefers a managed ripgrep binary downloaded
62+
* into its global bin directory.
63+
* - Even if ripgrep is available on the system PATH, it is intentionally
64+
* not used at this time.
65+
*
66+
* Preference for system-installed ripgrep is blocked on:
67+
* - checksum verification of external binaries
68+
* - internalization of the get-ripgrep dependency
69+
*
70+
* See:
71+
* - feat(core): Prefer rg in system path (#11847)
72+
* - Move get-ripgrep to third_party (#12099)
73+
*/
5874
async function ensureRipgrepAvailable(): Promise<string | null> {
5975
const existingPath = await resolveExistingRgPath();
6076
if (existingPath) {

0 commit comments

Comments
 (0)