GO 语言使用 etcd 的 clientv3 报错 请问该如何解决

oymin · · 427 次点击 · 开始浏览    置顶
#### 按照官网的命令下载了 clientv3 `go get go.etcd.io/etcd/clientv3` #### 运行的时候报了如下的错误 请问如何解决?? ![image.png](https://static.studygolang.com/190115/c5cdf47104a0962a07f85219a4edb14e.png) ``` # github.com/etcd/clientv3 ..\github.com\etcd\clientv3\auth.go:116:72: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:121:74: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:126:100: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:131:86: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:136:122: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:141:104: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:146:80: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:151:72: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:156:106: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:161:80: cannot use auth.callOpts (type []"github.com/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 ..\github.com\etcd\clientv3\auth.go:161:80: too many errors ```
427 次点击  
加入收藏 微博
2 回复  |  直到 2019-01-30 16:04:45
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传