Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientv3 code in README is not working #12349

Closed
zbindenren opened this issue Sep 29, 2020 · 1 comment
Closed

clientv3 code in README is not working #12349

zbindenren opened this issue Sep 29, 2020 · 1 comment

Comments

@zbindenren
Copy link
Contributor

% mkdir testetcd
% cd testetcd
% go mod init
go: creating new go.mod: module github.com/zbindenren/testetcd
% go clean -modcache
% go get go.etcd.io/etcd/clientv3
go: downloading go.etcd.io/etcd v0.5.0-alpha.5
go: downloading go.etcd.io/etcd v3.3.25+incompatible
go: found go.etcd.io/etcd/clientv3 in go.etcd.io/etcd v3.3.25+incompatible
go: finding module for package github.com/coreos/etcd/clientv3/credentials
go: finding module for package github.com/coreos/etcd/auth/authpb
go: finding module for package github.com/coreos/etcd/pkg/logutil
go: finding module for package github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes
go: finding module for package github.com/coreos/etcd/etcdserver/etcdserverpb
go: finding module for package github.com/coreos/etcd/version
go: finding module for package google.golang.org/grpc/metadata
go: finding module for package github.com/coreos/etcd/clientv3/balancer
go: finding module for package google.golang.org/grpc/codes
go: finding module for package google.golang.org/grpc/status
go: downloading github.com/coreos/etcd v0.5.0-alpha.5
go: downloading google.golang.org/grpc v1.32.0
go: downloading github.com/coreos/etcd v3.3.25+incompatible
go: finding module for package github.com/coreos/etcd/pkg/types
go: finding module for package github.com/google/uuid
go: finding module for package go.uber.org/zap
...
# github.com/coreos/etcd/clientv3/balancer/picker
../../../../pkg/mod/github.com/coreos/etcd@v3.3.25+incompatible/clientv3/balancer/picker/err.go:37:44: undefined: balancer.PickOptions
../../../../pkg/mod/github.com/coreos/etcd@v3.3.25+incompatible/clientv3/balancer/picker/roundrobin_balanced.go:55:54: undefined: balancer.PickOptions
# github.com/coreos/etcd/clientv3/balancer/resolver/endpoint
../../../../pkg/mod/github.com/coreos/etcd@v3.3.25+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:114:78: undefined: resolver.BuildOption
../../../../pkg/mod/github.com/coreos/etcd@v3.3.25+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:182:31: undefined: resolver.ResolveNowOption

Has anybody a working go.mod file that works with google.golang.org/grp > 1.26.0? See also: #11931

@zbindenren
Copy link
Contributor Author

Should be fixed with release 3.5: #12124 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant