Golang grpc go.mod问题

huangapple go评论93阅读模式
英文:

Golang grpc go.mod issue

问题

大家好,有人知道这个包的问题是什么吗?

go: loading module retractions for github.com/googleapis/gax-go/v2@v2.0.1: 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 ./...之后,如何解决这个问题或者绕过这个问题?

英文:

Hi guys does anyone would know what is the issue with this package:

go: loading module retractions for github.com/googleapis/gax-go/v2@v2.0.1: parsing go.mod: go.mod:8:2: require google.golang.org/genproto: version "b98a9ff5e252" invalid: must be of the form v1.2.3

after doing go get -u ./... or how to work around to fix this ?

答案1

得分: 5

你尝试导入的模块的go.mod文件是损坏的。根据你发布的消息,版本号应该以"v"开头(参见这里)。

看起来这个模块是由一个机器人破坏的 https://github.com/googleapis/gax-go/commit/735836c34b8124d657958d469998865569e14742

解决方案是在googleapis/gax-go存储库上还原该提交。

英文:

The go.mod file of the module you are trying to import is broken. As the message you posted says, the version number should start with "v" (see here)

It seems that the module was broken by a bot https://github.com/googleapis/gax-go/commit/735836c34b8124d657958d469998865569e14742

The solution would be to revert the commit on the googleapis/gax-go repository.

huangapple
  • 本文由 发表于 2022年8月5日 03:47:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/73241516.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定