One of the go-lang based microservice code require to connect with fabric's chain code, It was working fine until last time, no issue so far.
But now it's showing the following issue while building the go based microservice which have fabric client code to connect with fabric chaincode.
../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
Maybe its a dependency issue, I cleaned up the complete vendor directory and and done dep ensure --update ,but it showing same issue,
Further information :
Go Version 1.12
On GoPkg.Toml
[[override]] name = "github.com/hyperledger/fabric" branch = "master"
[[override]] name = "github.com/hyperledger/fabric-sdk-go" branch = "master"
I have tried various combination and different branches of fabric-sdk-go, its still showing the same, though it worked fine earlier.