diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-09-22 22:38:13 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-09-22 22:38:13 +0000 |
| commit | 9275fdcc43e5f50ae3fabbe003ad0906c653eda4 (patch) | |
| tree | f30b488ccde1cd4ff1caa0158529d78cc6af6ceb /misc/github-copilot-cli-legacy/files/patch-node__modules__github_copilot_npm-loader.js | |
| parent | 0d162d4c7772b582506d6ea5eddc8a94953fad9b (diff) | |
misc/github-copilot-cli-legacy: remove in favor of misc/github-copilot-cli
Diffstat (limited to 'misc/github-copilot-cli-legacy/files/patch-node__modules__github_copilot_npm-loader.js')
| -rw-r--r-- | misc/github-copilot-cli-legacy/files/patch-node__modules__github_copilot_npm-loader.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/misc/github-copilot-cli-legacy/files/patch-node__modules__github_copilot_npm-loader.js b/misc/github-copilot-cli-legacy/files/patch-node__modules__github_copilot_npm-loader.js deleted file mode 100644 index f17ba27128eb..000000000000 --- a/misc/github-copilot-cli-legacy/files/patch-node__modules__github_copilot_npm-loader.js +++ /dev/null @@ -1,10 +0,0 @@ ---- node_modules/@github/copilot/npm-loader.js.orig 2026-03-01 19:16:08 UTC -+++ node_modules/@github/copilot/npm-loader.js -@@ -4,4 +4,7 @@ - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -+// Disable the built-in ripgrep (which is non-existent) to ensure that the CLI uses the externally installed ripgrep -+process.env.USE_BUILTIN_RIPGREP = 'false'; -+ - import{spawnSync as e}from"node:child_process";import{fileURLToPath as s}from"node:url";async function t(){try{const o=s(import.meta.resolve(`@github/copilot-${process.platform}-${process.arch}`)),r=e(o,process.argv.slice(2),{stdio:"inherit"});process.exit(r.status??1)}catch{}parseInt(process.versions.node.split(".")[0],10)<22&&(console.error(`GitHub Copilot CLI requires Node.js v22 or higher. Currently using v${process.versions.node}.`),process.exit(1));try{await import("./index.js")}catch(o){console.error("Failed to load GitHub Copilot CLI:",o),process.exit(1)}}t(); |
