first network
问题描述
- 执行‘./byfn.sh up’报错
Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/shim
!!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
问题图片
解决方法
- 可能是golang的环境变量问题,执行'go env',可以看到GOPROXY的值
go env
- 执行以下命令后,再重新运行‘./byfn.sh up’即可成功
go env -w GOPROXY=https://goproxy.cn
export GOPROXY=https://goproxy.cn``
运行成功
参考链接
https://www.cnblogs.com/zoujiaojiao/p/12606909.html
有疑问加站长微信联系(非本文作者)