我刚刚开始学习 GO 和 ChainCode。我已按照以下网址中提到的说明学习编程链码
https://github.com/IBM-Blockchain/learn-chaincode
我已经设置了代码并运行了命令$ go build ./
但我收到以下错误
../../../hyperledger/fabric/core/crypto/attributes/attributes.go:28:2: no buildable Go source files in /home/serveradmin/gowork/src/github.com/hyperledger/fabric/core/crypto/attributes/proto
如果有人遇到这个错误并修复它,请告诉我
最佳答案
其实是更新后的bug,已经修复了。 根据以下内容, https://github.com/hyperledger/fabric/commit/af5f75d3fb52ee5cd607abfef4324fc049153268 .
Revert "Upgrade go protobuff from 3-beta to 3" This reverts commit a98c59a.
We are experiencing several failures related to this merge, so lets revert it for now and re-group
请拉取最新版本,会顺利运行
关于go - 链代码示例中没有可构建的 Go 源文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39219196/