From 93090f93c412f3f8f7b5287cf45d6a38405b5a89 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 12 Jan 2015 14:49:52 +0800 Subject: [PATCH] windows tcp conn load issue workaround --- output/outputs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/output/outputs.go b/output/outputs.go index 654e8cc..295b0be 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -1050,4 +1050,9 @@ func setCmdEnv(cmd *exec.Cmd, username string) { "GOARCH="+runtime.GOARCH, "GOROOT="+runtime.GOROOT(), "PATH="+os.Getenv("PATH")) + + if util.OS.IsWindows() { + // FIXME: for some weird issues on Windows, such as: The requested service provider could not be loaded or initialized. + cmd.Env = append(cmd.Env, os.Environ()...) + } }