提交 f27cb5be 编写于 作者: chai2010's avatar chai2010

临时屏蔽 Windows 环境变量异常问题

上级 da295b11
......@@ -53,15 +53,18 @@ func RunWasm(cfg *config.Config, filename string, wasmArgs ...string) (stdoutStd
WithSysWalltime().
WithArgs(append([]string{wasmExe}, wasmArgs...)...)
for _, s := range os.Environ() {
var key, value string
if kv := strings.Split(s, "="); len(kv) >= 2 {
key = kv[0]
value = kv[1]
} else if len(kv) >= 1 {
key = kv[0]
// TODO: Windows 可能导致异常, 临时屏蔽
if runtime.GOOS != "windows" {
for _, s := range os.Environ() {
var key, value string
if kv := strings.Split(s, "="); len(kv) >= 2 {
key = kv[0]
value = kv[1]
} else if len(kv) >= 1 {
key = kv[0]
}
conf = conf.WithEnv(key, value)
}
conf = conf.WithEnv(key, value)
}
ctx := context.Background()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册