Error while using "github.com/coreos/etcd/clientV3"

65 views
Skip to first unread message

Yashi Gupta

unread,
May 8, 2020, 2:56:23 PM5/8/20
to golang-nuts
I have been trying to use "github.com/coreos/etcd/clientv3"  for creating a microservice 
but while "go build" It shows the following error.

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


# github.com/coreos/etcd/clientv3
..\..\github.com\coreos\etcd\clientv3\auth.go:125: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
..\..\github.com\coreos\etcd\clientv3\auth.go:130: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
..\..\github.com\coreos\etcd\clientv3\auth.go:135: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.AuthStatus
..\..\github.com\coreos\etcd\clientv3\auth.go:140:152: 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/grp
c".CallOption in argument to auth.remote.UserAdd
..\..\github.com\coreos\etcd\clientv3\auth.go:145:144: 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/grp
c".CallOption in argument to auth.remote.UserAdd
..\..\github.com\coreos\etcd\clientv3\auth.go:150: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
..\..\github.com\coreos\etcd\clientv3\auth.go:155: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/grp
c".CallOption in argument to auth.remote.UserChangePassword
..\..\github.com\coreos\etcd\clientv3\auth.go:160: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/grp
c".CallOption in argument to auth.remote.UserGrantRole
..\..\github.com\coreos\etcd\clientv3\auth.go:165: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
..\..\github.com\coreos\etcd\clientv3\auth.go:170: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
..\..\github.com\coreos\etcd\clientv3\auth.go:170:72: too many errors

Reply all
Reply to author
Forward
0 new messages