具体报错内容如下:OCI runtime create failed: container_linux.go:349: starting container process caused \"exec: \\\"chaincode\\\": executable file not found in $PATH\": unknown"
Hyperledger Fabric2.0初始化链码时遇到如上错误
尝试了很多办法都未得到解决,最后猜想可能跟智能合约的依赖包有关,之前为了提速使用的是
go env -w GOPROXY=https://goproxy.cn
国内代理来配置依赖,后来改回了原来的代理,删除原来的依赖包并重新下载,问题就得到了解决
go env -w GOPROXY