mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 08:29:58 +08:00
chore: not using goproxy by default (#4613)
This commit is contained in:
@@ -11,9 +11,9 @@ import (
|
||||
// upgrade gets the latest goctl by
|
||||
// go install github.com/zeromicro/go-zero/tools/goctl@latest
|
||||
func upgrade(_ *cobra.Command, _ []string) error {
|
||||
cmd := `GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest`
|
||||
cmd := `go install github.com/zeromicro/go-zero/tools/goctl@latest`
|
||||
if runtime.GOOS == "windows" {
|
||||
cmd = `set GOPROXY=https://goproxy.cn,direct && go install github.com/zeromicro/go-zero/tools/goctl@latest`
|
||||
cmd = `go install github.com/zeromicro/go-zero/tools/goctl@latest`
|
||||
}
|
||||
info, err := execx.Run(cmd, "")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user