英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论