mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
fix(goctl): GOPROXY env should set by ourself (#4087)
This commit is contained in:
parent
e1f15efb3b
commit
1b9b61f505
@ -8,7 +8,7 @@ import (
|
||||
func Install(git string) error {
|
||||
cmd := exec.Command("go", "install", git)
|
||||
env := os.Environ()
|
||||
env = append(env, "GO111MODULE=on", "GOPROXY=https://goproxy.cn,direct")
|
||||
env = append(env, "GO111MODULE=on")
|
||||
cmd.Env = env
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
Loading…
Reference in New Issue
Block a user