go-kratos / kratos

Your ultimate Go microservices framework for the cloud-native era.
https://go-kratos.dev
MIT License
23.27k stars 4k forks source link

安装 kratos tool 失败 #261

Closed tumayun closed 5 years ago

tumayun commented 5 years ago

missing module line

go: gopkg.in/jcmturner/rpc.v1@v1.1.1: parsing go.mod: missing module line

完整命令

go get -u github.com/bilibili/kratos/tool/kratos
go: finding golang.org/x/sys latest
go: finding github.com/cznic/strutil latest
go: finding google.golang.org/genproto latest
go: finding github.com/golang/groupcache latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/tools latest
go: finding github.com/cznic/b latest
go: finding golang.org/x/net latest
go: finding golang.org/x/time latest
go: finding github.com/prometheus/client_model latest
go: finding github.com/shirou/w32 latest
go: finding golang.org/x/sync latest
go: finding github.com/StackExchange/wmi latest
go: finding gopkg.in/check.v1 latest
go: finding github.com/dgryski/go-farm latest
go: finding github.com/modern-go/concurrent latest
go: finding github.com/samuel/go-zookeeper latest
go: finding golang.org/x/exp latest
go: finding github.com/tsuna/gohbase latest
go: finding github.com/mwitkow/go-conntrack latest
go: finding github.com/google/pprof latest
go: finding golang.org/x/oauth2 latest
go: finding github.com/cznic/mathutil latest
go: finding github.com/jstemmer/go-junit-report latest
go: finding github.com/remyoudompheng/bigfft latest
go: finding github.com/aristanetworks/goarista latest
go: finding github.com/kr/logfmt latest
go: finding github.com/golang/glog latest
go: finding github.com/coreos/go-systemd latest
go: finding github.com/BurntSushi/xgb latest
go: finding github.com/alecthomas/template latest
go: finding golang.org/x/mobile latest
go: finding github.com/coreos/pkg latest
go: finding github.com/streadway/amqp latest
go: finding golang.org/x/xerrors latest
go: finding github.com/alecthomas/units latest
go: finding golang.org/x/image latest
go: finding github.com/tmc/grpc-websocket-proxy latest
go: finding gopkg.in/tomb.v1 latest
go: finding github.com/cockroachdb/datadriven latest
go: finding github.com/xiang90/probing latest
go: finding github.com/rcrowley/go-metrics latest
go: finding github.com/eapache/go-xerial-snappy latest
go: finding github.com/siddontang/go latest
go: finding github.com/xdg/scram latest
go: finding github.com/armon/consul-api latest
go: finding istio.io/gogo-genproto latest
go: finding github.com/spaolacci/murmur3 v1.1.0
go: finding github.com/dgryski/go-sip13 latest
go: gopkg.in/jcmturner/rpc.v1@v1.1.1: parsing go.mod: missing module line
go get: error loading module requirements
tonybase commented 5 years ago

应该是goproxy问题,可以看下FAQ,换一下就好了

ryanwx commented 5 years ago

这个问题似乎只出现在 0.2.1 版本,我尝试了其它版本,没有问题,确实是使用了 goproxy ,但 goproxy 中也似乎没有提到这个问题

tonybase commented 5 years ago

https://github.com/bilibili/kratos/blob/master/doc/wiki-cn/FAQ.md

有尝试过这个不呢,有的goproxy缓存有问题导致hash不对才会出现的

wakaryry commented 5 years ago

换成阿里云的proxy成功了。