Issues - GitHub
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} etcd-io / etcd Public 
frodriguez-sropened on Jul 29, 2020
- Notifications You must be signed in to change notification settings
- Fork 10.3k
- Star 51.5k
- Code
- Issues 116
- Pull requests 85
- Discussions
- Actions
- Security 14
- Insights
Description
There's an issue when try to vendoring the client
package main import ( "context" "flag" "fmt" "log" "time" "go.etcd.io/etcd/clientv3" "go.etcd.io/etcd/clientv3/concurrency" ) func main() { var name = flag.String("name", "", "give a name") flag.Parse() // Create a etcd client cli, err := clientv3.New(clientv3.Config{Endpoints: []string{"localhost:2379"}}) if err != nil { log.Fatal(err) } defer cli.Close() // create a sessions to aqcuire a lock s, _ := concurrency.NewSession(cli) defer s.Close() l := concurrency.NewMutex(s, "/distributed-lock/") ctx := context.Background() // acquire lock (or wait to have it) if err := l.Lock(ctx); err != nil { log.Fatal("cannot get lock") } fmt.Println("acquired lock for ", *name) fmt.Println("Do some work in", *name) time.Sleep(5 * time.Second) if err := l.Unlock(ctx); err != nil { log.Fatal(err) } fmt.Println("released lock for ", *name) }Works when I run go run main.go -name first
But at the time to vendoring it has the same issue go mod init && go mod tidy and then
I got
go: src.srconnect.io/frodriguez/etcd_poc imports go.etcd.io/etcd/clientv3 tested by go.etcd.io/etcd/clientv3.test imports github.com/coreos/etcd/auth imports github.com/coreos/etcd/mvcc/backend imports github.com/coreos/bbolt: github.com/coreos/[email protected]: parsing go.mod: module declares its path as: go.etcd.io/bbolt but was required as: github.com/coreos/bboltIf I run go mod vendor and then go run -mod=vendor main.go -name first
I get
# github.com/coreos/etcd/clientv3/balancer/resolver/endpoint vendor/github.com/coreos/etcd/clientv3/balancer/resolver/endpoint/endpoint.go:114:78: undefined: resolver.BuildOption vendor/github.com/coreos/etcd/clientv3/balancer/resolver/endpoint/endpoint.go:182:31: undefined: resolver.ResolveNowOption # github.com/coreos/etcd/clientv3/balancer/picker vendor/github.com/coreos/etcd/clientv3/balancer/picker/err.go:37:44: undefined: balancer.PickOptions vendor/github.com/coreos/etcd/clientv3/balancer/picker/roundrobin_balanced.go:55:54: undefined: balancer.PickOptionsLooks like some dependencies are broken or needs to be updated
Metadata
Metadata
Assignees
No one assignedLabels
No labelsNo labelsType
No typeProjects
No projectsMilestone
No milestoneRelationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Từ khóa » C-114/78
-
61978CJ0114 - EN - EUR-Lex - European Union
-
[PDF] (preliminary Ruling Requested By The Verwaltungsgericht Kassel)
-
Series 114-78 - Individual Limited Health Benefits Plans - Casetext
-
Section 114-78-3 - Rate Filing, W. Va. Code R. § 114-78-3 - Casetext
-
S. Hrg. 114-78 - GETTING IT RIGHT ON DATA SECURITY AND ...
-
§ 114:78. Commencement Of Tenancy | Secondary Sources | Westlaw
-
Annapolis Valley Residential Tenancies Area Regulations - CanLII
-
[PDF] 114CSR78 - West Virginia Offices Of The Insurance Commissioner
-
H. Rept. 114-78 - AMENDING THE NATIONAL TRAILS SYSTEM ...
-
Blood Pressure Numbers: When To Get Help - MyHealth Alberta
-
[PDF] Soil Conservation Service Records - National Archives
-
Granite Kitchen Sink Perfelli IZETTA OGI 114-78 LIGHT BEIGE