Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

go2sky conflict with etcdv3 #69

Closed
uther518 opened this issue Jul 28, 2020 · 7 comments
Closed

go2sky conflict with etcdv3 #69

uther518 opened this issue Jul 28, 2020 · 7 comments
Labels
question End user question and discussion.
Milestone

Comments

@uther518
Copy link

import (
"context"
"github.com/SkyAPM/go2sky"
"github.com/SkyAPM/go2sky/reporter"
_ "github.com/coreos/etcd/clientv3"
"github.com/robfig/cron"
"log"
"time"
)

report error:

GOROOT=C:\Go #gosetup
GOPATH=D:\gopath #gosetup
C:\Go\bin\go.exe build -o C:\Users\admin\AppData\Local\Temp__go_build_main_go__1.exe -gcflags "all=-N -l" D:\projects\go-micro-demo\micro\crontab-service\main.go #gosetup

github.com/coreos/etcd/clientv3/balancer/resolver/endpoint

D:\gopath\pkg\mod\github.com\coreos\etcd@v3.3.18+incompatible\clientv3\balancer\resolver\endpoint\endpoint.go:114:78: undefined: resolver.BuildOption
D:\gopath\pkg\mod\github.com\coreos\etcd@v3.3.18+incompatible\clientv3\balancer\resolver\endpoint\endpoint.go:182:31: undefined: resolver.ResolveNowOption

github.com/coreos/etcd/clientv3/balancer/picker

D:\gopath\pkg\mod\github.com\coreos\etcd@v3.3.18+incompatible\clientv3\balancer\picker\err.go:37:44: undefined: balancer.PickOptions
D:\gopath\pkg\mod\github.com\coreos\etcd@v3.3.18+incompatible\clientv3\balancer\picker\roundrobin_balanced.go:55:54: undefined: balancer.PickOptions

Compilation finished with exit code 2

@wu-sheng
Copy link
Member

@arugal Do we have dependency about etcd? I am confused.

@arugal
Copy link
Member

arugal commented Jul 29, 2020

Hi @lchb369, It seems that your situation is the same with this issue, do you use go-micro

@arugal
Copy link
Member

arugal commented Jul 29, 2020

@arugal Do we have dependency about etcd? I am confused.

go2sky only dependencies related to grpc.

@arugal arugal added the question End user question and discussion. label Jul 29, 2020
@arugal arugal added this to the 1.0.0 milestone Jul 29, 2020
@jiawei8
Copy link

jiawei8 commented Jul 30, 2020

gRPC v1.27 is not compatible with etcd v3.3.18,you can upgrade etcd version to v3.4,see this issue.

@uther518
Copy link
Author

uther518 commented Aug 5, 2020

//解决etcdv3与grpc冲突问题https://www.jianshu.com/p/1971a27096b9
replace google.golang.org/grpc => google.golang.org/grpc v1.26.0

@uther518
Copy link
Author

uther518 commented Aug 5, 2020

@arugal yes,I am use go-micro

@arugal
Copy link
Member

arugal commented Aug 9, 2020

@lchb369 The cause has been found. Closed.

@arugal arugal closed this as completed Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question End user question and discussion.
Projects
None yet
Development

No branches or pull requests

4 participants