Golang grpc go.mod 问题

标签 go

大家好,有谁知道这个包有什么问题吗:

go: loading module retractions for github.com/googleapis/gax-go/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ceb8fc8eb8fce0fee0ff" rel="noreferrer noopener nofollow">[email protected]</a>: parsing go.mod: go.mod:8:2: require google.golang.org/genproto: version "b98a9ff5e252" invalid: must be of the form v1.2.3

执行go get -u ./...后或如何解决此问题?

最佳答案

您尝试导入的模块的 go.mod 文件已损坏。正如您发布的消息所述,版本号应以“v”开头(请参阅 here )

模块似乎被机器人破坏了 https://github.com/googleapis/gax-go/commit/735836c34b8124d657958d469998865569e14742

解决方案是恢复 googleapis/gax-go 存储库上的提交。

关于Golang grpc go.mod 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73241516/

相关文章:

go - 这是在 Linux 上以 root 身份运行部分 go 代码的合理方法吗?

postgresql - getsockopt : connection timed out

docker - 当 PIPE docker 中的输出时从 os.Stdin 读取时被阻止

go - 如何从 Golang 中的字符串周围删除引号

go - git2go 中的 SSH 身份验证

file - 在 Go 中跳转到文件中的特定行

go - 获取模块名称的API

go - 将自定义类型断言为基本类型

go - 使用 pipe 执行 go binary 时使用 scanln

依赖接口(interface)的golang接口(interface)