Skip to content

Commit 18fce7e

Browse files
committed
try to fix windows test
1 parent fcfb1eb commit 18fce7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (a *agent) createCommand(ctx context.Context, rawCommand string, env []stri
359359
if err != nil {
360360
return nil, xerrors.Errorf("getting os executable: %w", err)
361361
}
362-
cmd.Env = append(cmd.Env, fmt.Sprintf(`PATH=%s%v%s`, os.Getenv("PATH"), filepath.ListSeparator, executablePath))
362+
cmd.Env = append(cmd.Env, fmt.Sprintf(`PATH=%s%c%s`, os.Getenv("PATH"), filepath.ListSeparator, executablePath))
363363
// Git on Windows resolves with UNIX-style paths.
364364
// If using backslashes, it's unable to find the executable.
365365
unixExecutablePath := strings.ReplaceAll(executablePath, "\\", "/")

0 commit comments

Comments
 (0)