first network
問題描述
- 執(zhí)行‘./byfn.sh up’報(bào)錯
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的環(huán)境變量問題视译,執(zhí)行'go env'别智,可以看到GOPROXY的值
go env
- 執(zhí)行以下命令后,再重新運(yùn)行‘./byfn.sh up’即可成功
go env -w GOPROXY=https://goproxy.cn
export GOPROXY=https://goproxy.cn``
運(yùn)行成功