go使用etcd依赖频频报错解决

简介: go使用etcd依赖频频报错解决

导包报错:

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
)


相关文章
|
4月前
|
Go API 开发工具
Go etcd 的依赖问题终于解决了。。。
Go etcd 的依赖问题终于解决了。。。
|
5月前
|
存储 Linux Go
GO 项目依赖管理:go module总结
GO 项目依赖管理:go module总结
81 0
|
2月前
|
NoSQL Go Redis
关于kratos proto 生成pb.go的一些报错,问题
关于kratos proto 生成pb.go的一些报错,问题
|
4月前
|
人工智能 IDE Go
go mod 依赖管理
go mod 依赖管理
40 1
|
4月前
|
安全 Go 开发者
掌握 Go 语言的依赖关系管理
【8月更文挑战第31天】
44 0
|
6月前
|
Unix Docker 容器
使用docker 启动naocs 报错出现:standard_init_linux.go:241: exec user process caused "exec format error"
```markdown Error in Docker container startup: "standard_init_linux.go:241: exec user process caused \"exec format error\"". Occurred at 2024-06-29 09:26:19.910, followed by a failed hook with a syslog delivery error at 09:27:20.193. Seeking solutions from experts. ```
|
5月前
|
分布式计算 大数据 Go
MaxCompute操作报错合集之使用go sdk调用GetTunnelEndpoint出现报错:InvalidAction.NotFoundSpecified api is not found,该如何解决
MaxCompute是阿里云提供的大规模离线数据处理服务,用于大数据分析、挖掘和报表生成等场景。在使用MaxCompute进行数据处理时,可能会遇到各种操作报错。以下是一些常见的MaxCompute操作报错及其可能的原因与解决措施的合集。
|
5月前
|
运维 Devops API
阿里云云效操作报错合集之直接用API调用可以使用,但是本地用Go代码调用失败,是什么导致的?
本合集将整理呈现用户在使用过程中遇到的报错及其对应的解决办法,包括但不限于账户权限设置错误、项目配置不正确、代码提交冲突、构建任务执行失败、测试环境异常、需求流转阻塞等问题。阿里云云效是一站式企业级研发协同和DevOps平台,为企业提供从需求规划、开发、测试、发布到运维、运营的全流程端到端服务和工具支撑,致力于提升企业的研发效能和创新能力。
|
6月前
|
监控 Go
go语言并发实战——日志收集系统(十一)基于etcd来监视配置文件的变化
go语言并发实战——日志收集系统(十一)基于etcd来监视配置文件的变化