kevin-hf / education

基于Hyperledger Fabric 使用fabric-sdk-go实现的一个征信应用.
231 stars 139 forks source link

make的时候报错 #6

Open yuyuyuyuyuyuyuyuyu opened 5 years ago

yuyuyuyuyuyuyuyuyu commented 5 years ago

请问一下,在执行make命令的时候报以下错误:

github.com/kongyixueyuan.com/education/vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util

vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:47:8: cannot convert nil to type csr.KeyRequest vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:132:37: cannot use req.KeyRequest (type *csr.KeyRequest) as type csr.KeyRequest in argument to getBCCSPKeyOpts

github.com/kongyixueyuan.com/education/vendor/github.com/zmap/zlint/lints

vendor/github.com/zmap/zlint/lints/result.go:75:9: undefined: strings.ReplaceAll Makefile:17: recipe for target 'build' failed 怎么解决?

sighttviewliu commented 5 years ago

undefined: strings.ReplaceAll You need use the Golang1.13.x instead of old.

sighttviewliu commented 5 years ago

cannot convert nil to type csr.KeyRequest cannot use req.KeyRequest (type *csr.KeyRequest) as type csr.KeyRequest in argument to getBCCSPKeyOpts

You need use the go mod and choose a concrete version per each dependency as well as set a goproxy for which downloads often get timeout.

sundael commented 4 years ago

我也遇到这个错误,蹲个解决方案,要是用go mod岂不是要改Makefile文件

LamSingjip commented 4 years ago

Here is the solution: https://stackoverflow.com/questions/57843256/there-is-something-wrong-with-fabric-sdk-go-when-i-run-go-buildwith-dep

I've tried and it works.

wocattree commented 4 years ago

我也遇到这个错误,蹲个解决方案,要是用go mod岂不是要改Makefile文件

请问你解决问题了吗

wocattree commented 4 years ago

Here is the solution: https://stackoverflow.com/questions/57843256/there-is-something-wrong-with-fabric-sdk-go-when-i-run-go-buildwith-dep

I've tried and it works.

Thanks!I've solve it