在安装链码中出现了:
Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 2 "google.golang.org/protobuf/internal/flags
解决办法:
智能合约go.mod 改为
require (
github.com/hyperledger/fabric-chaincode-go v0.0.0-20210319203922-6b661064d4d9
github.com/hyperledger/fabric-protos-go v0.0.0-20210520141515-88b9de28f790
)
删除 vendor文件、go.sum,重新执行go mod vendor