请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

下载etcd/clientv3出错

老师您好,在 https://golangtc.com/download/package 下载包时出错,同样在我自己电脑go get也报这样的错误,请问下是什么原因?谢谢。

$ go get -u -v github.com/coreos/etcd/clientv3
--省略
get "go.etcd.io/etcd/pkg/types": verifying non-authoritative meta tag
github.com/coreos/etcd/clientv3
# github.com/coreos/etcd/clientv3
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:116:72: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.AuthEnable
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:121:74: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.AuthDisable
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:126:100: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.UserAdd
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:131:86: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.UserDelete
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:136:122: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.UserChangePassword
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:141:104: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.UserGrantRole
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:146:80: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.UserGet
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:151:72: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.UserList
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:156:106: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.UserRevokeRole
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:161:80: cannot use auth.callOpts (type []"github.com/coreos/etcd/vendor/google.golang.org/grpc".CallOption) as type []"go.etcd.io/etcd/vendor/google.golang.org/grpc".CallOption in argument to auth.remote.RoleAdd
/var/go/common/src/github.com/coreos/etcd/clientv3/auth.go:161:80: too many errors

正在回答 回答被采纳积分+3

3回答

提问者 kxning 2018-10-22 14:29:18

go get go.etcd.io/etcd/client

看了下github,现在建议使用上面这个包,我用这个没问题。

2 回复 有任何疑惑可以回复我~
Willia 2020-09-12 17:24:36

我用的配置

go 1.14

replace github.com/coreos/bbolt v1.3.4 => go.etcd.io/bbolt v1.3.4

replace go.etcd.io/bbolt v1.3.4 => github.com/coreos/bbolt v1.3.4
replace google.golang.org/grpc => google.golang.org/grpc v1.26.0


可以

1 回复 有任何疑惑可以回复我~
小鱼儿老师 2018-10-22 14:42:27

OK,我看了一下的确官方迁移了代码仓库,你的做法没问题。

0 回复 有任何疑惑可以回复我~
  • 这个地址被墙了 费了些周折把包下下来了 那个第三方包下载的网站不能用了 哈哈哈
    回复 有任何疑惑可以回复我~ 2019-01-30 16:16:38
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信