rpcxio/rpcx-examples

mod dependency error

Closed this issue · 3 comments

I use go mod tidy to download dependency modules,but something error:

go: finding module for package google.golang.org/grpc/naming
go: finding module for package google.golang.org/grpc/examples/helloworld/helloworld
go: found google.golang.org/grpc/examples/helloworld/helloworld in google.golang.org/grpc/examples v0.0.0-20210427222225-24d03d9f7691
go: finding module for package google.golang.org/grpc/naming
github.com/rpcxio/rpcx-examples/101basic/client imports
        github.com/smallnest/rpcx/client imports
        github.com/docker/libkv/store/etcd imports
        github.com/coreos/etcd/client tested by
        github.com/coreos/etcd/client.test imports
        github.com/coreos/etcd/integration imports
        github.com/coreos/etcd/proxy/grpcproxy imports
        google.golang.org/grpc/naming: module google.golang.org/grpc@latest found (v1.37.0), but does not contain package google.golang.org/grpc/naming

Is this a version problem? :)

go get google.golang.org/grpc@v1.29.1 试试

你确定拉取的是最新的rpcx-examples代码吗?因为github.com/smallnest/rpcx/client目前不再依赖github.com/docker/libkv/store/etcd

go get google.golang.org/grpc@v1.29.1 试试

use this method can fix this issue,but in go.mod ,some modules version has changed,i was use go 1.16.3. thanks for you reply :)