执行以下指令打包链码时报错
peer lifecycle chaincode package abac.tar.gz --path github.com/hyperledger/fabric-samples/chaincode/abac/go/ --lang golang --label abac_1
Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/pkg/cid
原因是链码依赖找不到,需要到链码所在的文件夹下下载依赖