This repository was archived by the owner on Jun 17, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/test/java/com/github/copilot/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,16 +55,16 @@ public static String tempPath(String filename) {
5555 * {@code null} if none was found
5656 */
5757 static String findCliPath () {
58- String copilotInPath = findCopilotInPath ();
59- if (copilotInPath != null ) {
60- return copilotInPath ;
61- }
62-
6358 String envPath = System .getenv ("COPILOT_CLI_PATH" );
6459 if (envPath != null && !envPath .isEmpty ()) {
6560 return envPath ;
6661 }
6762
63+ String copilotInPath = findCopilotInPath ();
64+ if (copilotInPath != null ) {
65+ return copilotInPath ;
66+ }
67+
6868 Path current = Paths .get (System .getProperty ("user.dir" ));
6969 while (current != null ) {
7070 Path cliPath = current .resolve ("nodejs/node_modules/@github/copilot/index.js" );
You can’t perform that action at this time.
0 commit comments