导包报错:
go: GoHigh 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/bbolt@v1.3.6: parsing go.mod: module declares its path as: go.etcd.io/bbolt
运行报错:
go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\auth.go:22:2: missing go.sum entry for module prov iding package github.com/coreos/etcd/auth/authpb (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\client.go:28:2: missing go.sum entry for module pr oviding package github.com/coreos/etcd/clientv3/balancer (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\client.go:29:2: missing go.sum entry for module pr oviding package github.com/coreos/etcd/clientv3/balancer/picker (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\client.go:30:2: missing go.sum entry for module pr oviding package github.com/coreos/etcd/clientv3/balancer/resolver/endpoint (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\client.go:31:2: missing go.sum entry for module pr oviding package github.com/coreos/etcd/clientv3/credentials (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\client.go:32:2: missing go.sum entry for module pr oviding package github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\auth.go:23:2: missing go.sum entry for module prov iding package github.com/coreos/etcd/etcdserver/etcdserverpb (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible go\pkg\mod\go.etcd.io\etcd@v3.3.27+incompatible\clientv3\ctx.go:22:2: missing go.sum entry for module provi ding package github.com/coreos/etcd/version (imported by go.etcd.io/etcd/clientv3); to add: go get go.etcd.io/etcd/clientv3@v3.3.27+incompatible
博客太多水文,把我人看麻了,浪费了太多时间,
go.mod里面添加
require ( github.com/Shopify/toxiproxy v2.1.4+incompatible // indirect github.com/coreos/bbolt v1.3.3 // indirect github.com/coreos/go-semver v0.3.0 // indirect github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f // indirect github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect github.com/eapache/go-resiliency v1.2.0 // indirect github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect github.com/eapache/queue v1.1.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect github.com/gogo/protobuf v1.1.1 // indirect github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect github.com/golang/protobuf v1.3.1 // indirect github.com/golang/snappy v0.0.1 // indirect github.com/google/btree v1.0.0 // indirect github.com/gorilla/websocket v1.4.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect github.com/grpc-ecosystem/grpc-gateway v1.9.4 // indirect github.com/jonboulle/clockwork v0.1.0 // indirect github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect github.com/pierrec/lz4 v2.2.4+incompatible // indirect github.com/prometheus/client_golang v1.0.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20190706150252-9beb055b7962 // indirect github.com/smartystreets/goconvey v0.0.0-20190710185942-9d28bd7c0945 // indirect github.com/soheilhy/cmux v0.1.4 // indirect github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect go.uber.org/atomic v1.4.0 // indirect go.uber.org/multierr v1.1.0 // indirect go.uber.org/zap v1.10.0 // indirect golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 // indirect golang.org/x/sys v0.0.0-20190422165155-953cdadca894 // indirect golang.org/x/text v0.3.0 // indirect golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 // indirect google.golang.org/grpc v1.22.0 // indirect gopkg.in/fsnotify.v1 v1.4.7 // indirect gopkg.in/ini.v1 v1.44.0 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect )