diff --git a/make.go b/make.go index 9b5b599a6..b3b95c1fa 100644 --- a/make.go +++ b/make.go @@ -406,6 +406,8 @@ func genSearchTypes() error { cmd.Env = append(cleanGoEnv(), "GOPATH="+buildGoPath, ) + cmd.Env = setEnv(cmd.Env, "GOOS", runtime.GOOS) + cmd.Env = setEnv(cmd.Env, "GOARCH", runtime.GOARCH) if out, err := cmd.CombinedOutput(); err != nil { return fmt.Errorf("go generate for publisher js error: %v, %v", err, string(out)) }