Date: Sun, 01 Mar 2026 20:47:04 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 64390332c7e0 - main - misc/github-copilot-cli: Add ripgrep run-time dependency Message-ID: <69a4a5c8.240b4.4a770090@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=64390332c7e03c0010aca554d64cb371d129d139 commit 64390332c7e03c0010aca554d64cb371d129d139 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-03-01 19:27:39 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-03-01 20:46:48 +0000 misc/github-copilot-cli: Add ripgrep run-time dependency --- misc/github-copilot-cli/Makefile | 2 ++ .../files/patch-node__modules__github_copilot_npm-loader.js | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/misc/github-copilot-cli/Makefile b/misc/github-copilot-cli/Makefile index d918c923096a..a29eafff15d7 100644 --- a/misc/github-copilot-cli/Makefile +++ b/misc/github-copilot-cli/Makefile @@ -1,5 +1,6 @@ PORTNAME= github-copilot-cli DISTVERSION= 0.0.394 # do not update until https://github.com/github/copilot-cli/issues/1320 is fixed +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= misc # machine-learning DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ @@ -19,6 +20,7 @@ BUILD_DEPENDS= npm:www/npm \ libsecret>0:security/libsecret \ vips>=8.17.2:graphics/vips RUN_DEPENDS= libsecret>0:security/libsecret \ + rg:textproc/ripgrep \ vips>=8.17.2:graphics/vips USES= nodejs:run pkgconfig python:build diff --git a/misc/github-copilot-cli/files/patch-node__modules__github_copilot_npm-loader.js b/misc/github-copilot-cli/files/patch-node__modules__github_copilot_npm-loader.js new file mode 100644 index 000000000000..7c6235ea5a01 --- /dev/null +++ b/misc/github-copilot-cli/files/patch-node__modules__github_copilot_npm-loader.js @@ -0,0 +1,10 @@ +--- 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 (whic is non-existent) to ensure that the CLI uses the bundled version ++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();home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69a4a5c8.240b4.4a770090>
