使用模块get get的Hyperledger问题下载

问题描述 投票:0回答:1

我正在项目中使用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?

go hyperledger-fabric hyperledger
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.