Skip to content

Commit

Permalink
fix(goctl): GOPROXY env should set by ourself
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Apr 18, 2024
1 parent 4b0bacc commit 52a914c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/goctl/pkg/golang/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52a914c

Please sign in to comment.