go - 链代码示例中没有可构建的 Go 源文件错误

标签 go ibm-cloud blockchain hyperledger

我刚刚开始学习 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/

相关文章:

docker - 无法检索容器列表

linux - 如何在 Hyperledger Fabric 中创建一个新 block

docker - 如何在 Windows 10 的 Docker 中安装 telnet

concurrency - Golang 上传整个目录并发返回到许多打开的文件

go - 如何将 slice 的副本传递给函数?

java - Bluemix Java Liberty Web 项目 java.lang.NoClassDefFoundError : when loading third party jar

ibm-cloud - 云函数REST API : Creating a new action from a zip file

time - 准时测零最简洁的方法.Time

戈朗 : go command inside script?

node.js - 如何在本地查询区 block 链比特币