mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-22 20:14:58 -07:00
fix(evals): use direct path to tsx binary in dedup mocks
Avoids reliance on 'npx' which might be flaky or prompt for installation in CI environments.
This commit is contained in:
@@ -40,12 +40,14 @@ const createPrompt = (issueNumber: number) => {
|
||||
).replace(/\${{ github\.event\.issue\.number }}/g, issueNumber.toString());
|
||||
};
|
||||
|
||||
const tsxPath = path.join(process.cwd(), 'node_modules', '.bin', 'tsx');
|
||||
|
||||
const DEDUP_SETTINGS = {
|
||||
...ORIGINAL_SETTINGS,
|
||||
mcpServers: {
|
||||
issue_deduplication: {
|
||||
command: 'npx',
|
||||
args: ['tsx', mockMcpPath],
|
||||
command: tsxPath,
|
||||
args: [mockMcpPath],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -39,12 +39,14 @@ const createPrompt = () => {
|
||||
);
|
||||
};
|
||||
|
||||
const tsxPath = path.join(process.cwd(), 'node_modules', '.bin', 'tsx');
|
||||
|
||||
const REFRESH_SETTINGS = {
|
||||
...ORIGINAL_SETTINGS,
|
||||
mcpServers: {
|
||||
issue_deduplication: {
|
||||
command: 'npx',
|
||||
args: ['tsx', mockMcpPath],
|
||||
command: tsxPath,
|
||||
args: [mockMcpPath],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user