This commit is contained in:
Liang Ding 2014-09-03 16:03:12 +08:00
parent 821064ce8f
commit d9ae130441
1 changed files with 3 additions and 3 deletions

View File

@ -229,8 +229,8 @@ func setCmdEnv(cmd *exec.Cmd, username string) {
// glog.Infof("Master workspace [%s]", masterWorkspace)
cmd.Env = append(cmd.Env,
"GOPATH="+userWorkspace+string(os.PathListSeparator)+
masterWorkspace+string(os.PathListSeparator)+
os.Getenv("GOPATH"),
"GOPATH="+GOPATH+string(os.PathListSeparator)+
userWorkspace+string(os.PathListSeparator)+
masterWorkspace,
"GOROOT="+os.Getenv("GOROOT"))
}