fabric2.2手动搭建测试
打包链码时
peer lifecycle chaincode package sacc.tar.gz \
--path github.com/hyperledger/fabric-cluster/chaincode/go/ \
--label sacc_1
遇到Error: error getting chaincode bytes: 'go list' failed with: no required module provides package github.com/hyperledger/fabric-cluster/chaincode/go: go.mod file not found in current directory or any parent directory; see 'go help modules': exit status 1
使用命令go env -w GO111MODULE=auto
解决。