We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd2582ed commit2e9f563Copy full SHA for 2e9f563
cli/open.go
@@ -251,7 +251,7 @@ func isWindowsAbsPath(p string) bool {
251
switch {
252
caselen(p)==0:
253
returnfalse
254
-casep[0]=='/'||p[0]=='\\':
+casep[0]=='\\':
255
returntrue
256
default:
257
@@ -305,11 +305,12 @@ func resolveAgentAbsPath(workingDirectory, relOrAbsPath, agentOS string, local b
305
returnp,nil
306
307
caseagentOS=="windows":
308
+relOrAbsPath=strings.ReplaceAll(relOrAbsPath,"/","\\")
309
310
caseworkingDirectory!=""&&!isWindowsAbsPath(relOrAbsPath):
311
returnwindowsJoinPath(workingDirectory,relOrAbsPath),nil
312
caseisWindowsAbsPath(relOrAbsPath):
-returnwindowsJoinPath(relOrAbsPath),nil
313
+returnrelOrAbsPath,nil
314
315
return"",xerrors.Errorf("path %q not supported, use an absolute path instead",relOrAbsPath)
316
}