From 1b9b61f505946ed86f46ad38024a4b01202c69bf Mon Sep 17 00:00:00 2001 From: jaron Date: Thu, 18 Apr 2024 22:50:30 +0800 Subject: [PATCH] fix(goctl): GOPROXY env should set by ourself (#4087) --- tools/goctl/pkg/golang/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/goctl/pkg/golang/install.go b/tools/goctl/pkg/golang/install.go index 465b2e0f..984d3812 100644 --- a/tools/goctl/pkg/golang/install.go +++ b/tools/goctl/pkg/golang/install.go @@ -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