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

Hyperledger problem downloading with go get using modules

我在我的项目中使用 go modules,在尝试 运行 时: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 modules下载shim?

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