We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62d0fa0 commit c74ef8eCopy full SHA for c74ef8e
1 file changed
src/test/java/com/github/copilot/sdk/TestUtil.java
@@ -55,16 +55,16 @@ public static String tempPath(String filename) {
55
* {@code null} if none was found
56
*/
57
static String findCliPath() {
58
- String copilotInPath = findCopilotInPath();
59
- if (copilotInPath != null) {
60
- return copilotInPath;
61
- }
62
-
63
String envPath = System.getenv("COPILOT_CLI_PATH");
64
if (envPath != null && !envPath.isEmpty()) {
65
return envPath;
66
}
67
+ String copilotInPath = findCopilotInPath();
+ if (copilotInPath != null) {
+ return copilotInPath;
+ }
+
68
Path current = Paths.get(System.getProperty("user.dir"));
69
while (current != null) {
70
Path cliPath = current.resolve("nodejs/node_modules/@github/copilot/index.js");
0 commit comments