From f7ee4a9fc5f4ccaa4f1fc51d99a2d601578dc428 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Mon, 3 Oct 2022 16:56:00 -0400 Subject: [PATCH] internal/coordinator/remote: use correct syntax to expand PATH on Windows For golang/go#56015. Change-Id: Ic16f9b8e995424f50fda6921228a75683f91f8ff Reviewed-on: https://go-review.googlesource.com/c/build/+/437817 Reviewed-by: Ian Lance Taylor Run-TryBot: Bryan Mills Auto-Submit: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov --- internal/coordinator/remote/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/coordinator/remote/ssh.go b/internal/coordinator/remote/ssh.go index 476c8165a..9d90318a3 100644 --- a/internal/coordinator/remote/ssh.go +++ b/internal/coordinator/remote/ssh.go @@ -320,7 +320,7 @@ func (ss *SSHServer) setupRemoteSSHEnv(bconf *dashboard.BuildConfig, workDir str fmt.Fprintf(f, "set %s\n", env) } fmt.Fprintf(f, `set GOPATH=%s\gopath`+"\n", workDir) - fmt.Fprintf(f, `set PATH=$PATH;%s\go\bin`+"\n", workDir) + fmt.Fprintf(f, `set PATH=%%PATH%%;%s\go\bin`+"\n", workDir) fmt.Fprintf(f, `cd %s\go\src`+"\n", workDir) case "plan9": // TODO