使用Go Get使用模块下载Hyperledger问题

时间:2019-12-06 16:51:55

标签: go hyperledger-fabric 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?

1 个答案:

答案 0 :(得分:1)

填充程序现在位于github.com/hyperledger/fabric-chaincode-go/shim。您可以从那里go get