我想使用golang操作tikv,但是下载go依赖的时候出现问题。

image

我执行:

GO111MODULE=on go get -u github.com/pingcap/tidb@master

但是出现错误:

go: finding github.com/samuel/go-zookeeper latest
go: finding github.com/franela/goreq latest
go: finding github.com/op/go-logging latest
go: finding github.com/opentracing-contrib/go-observer latest
go: finding github.com/rcrowley/go-metrics latest
go: gopkg.in/fsnotify.v1@v1.4.9: unexpected status (https://goproxy.io/gopkg.in/fsnotify.v1/@v/v1.4.9.mod): 404 Not Found
go: finding github.com/lightstep/lightstep-tracer-common/golang/gogo latest
go: finding github.com/armon/circbuf latest
go get: error loading module requirements

应该怎么解决呢?

能不能把tikv的go client单独抽一个包?这样下载依赖,就不用下载很多不需要的依赖了, 也避免了很多问题。

现在下载tikv 的 go client ,搞了几个小时都没搞好。

您好,可以尝试使用一下 https://github.com/tikv/client-go,https://github.com/tikv/client-go/tree/master/examples 有部分示例