首页 > 解决方案 > 使用 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/fabric@v1.4.4: 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?

标签: gohyperledger-fabrichyperledger

解决方案


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


推荐阅读