登录
首页 >  Golang >  Go问答

使用 go get 命令下载 Hyperledger 模块的问题

来源:stackoverflow

时间:2024-03-03 23:45:20 388浏览 收藏

在Golang实战开发的过程中,我们经常会遇到一些这样那样的问题,然后要卡好半天,等问题解决了才发现原来一些细节知识点还是没有掌握好。今天golang学习网就整理分享《使用 go get 命令下载 Hyperledger 模块的问题》,聊聊,希望可以帮助到正在努力赚钱的你。

问题内容

我在项目中使用 go 模块,并在尝试运行时: go get -u github.com/hyperledger/fabric/core/chaincode/shim 系统提示我校验和错误。

go: finding github.com/hyperledger/fabric/core/chaincode/shim latest
go: finding github.com/hyperledger/fabric/core latest
go: finding github.com/hyperledger/fabric/core/chaincode latest
go: downloading github.com/hyperledger/fabric v1.4.4
verifying github.com/hyperledger/[email protected]: checksum mismatch
        downloaded: h1:2m+tDXB5QWyZL1UTyYs3fxUhkgvKD88yVE6sIwYf1KM=
        sum.golang.org: h1:Joa6eO9HEGnzcuZF5RD+dZBPeYqxGF+ehYb7OSs3glY=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

我尝试重置 modcache 但无济于事,我唯一能想到的就是使用另一个校验和服务器来验证包。

我的问题是:如何使用 go 模块下载 shim?


解决方案


垫片现在位于 github.com/hyperledger/fabric-chaincode-go/shim。您可以从那里 go get

到这里,我们也就讲完了《使用 go get 命令下载 Hyperledger 模块的问题》的内容了。个人认为,基础知识的学习和巩固,是为了更好的将其运用到项目中,欢迎关注golang学习网公众号,带你了解更多关于的知识点!

声明:本文转载于:stackoverflow 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>