Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x509/root_cgo_darwin.go errors #24555

Closed
paperx123 opened this issue Mar 27, 2018 · 1 comment
Closed

x509/root_cgo_darwin.go errors #24555

paperx123 opened this issue Mar 27, 2018 · 1 comment

Comments

@paperx123
Copy link

paperx123 commented Mar 27, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.10

Does this issue reproduce with the latest release?

no

What operating system and processor architecture are you using (go env)?

GOHOSTARCH="amd64"
GOHOSTOS="darwin"

What did you do?

I was trying to install fabric-ca.

$go get -u github.com/hyperledger/fabric-ca/cmd/...

Then I got errors in output.

# github.com/hyperledger/fabric-ca/vendor/github.com/google/certificate-transparency-go/x509
/path-to-my-hyperledger/fabric-ca/vendor/github.com/google/certificate-transparency-go/x509/root_cgo_darwin.go:210: cannot use nil as type _Ctype_CFDataRef in assignment
/path-to-my-hyperledger/fabric-ca/vendor/github.com/google/certificate-transparency-go/x509/root_cgo_darwin.go:211: cannot use nil as type _Ctype_CFDataRef in assignment
/path-to-my-hyperledger/fabric-ca/vendor/github.com/google/certificate-transparency-go/x509/root_cgo_darwin.go:221: cannot convert nil to type _Ctype_CFDataRef

What did you expect to see?

no error in output. The change below on correspondent lines looks to be working however any advice is appreciated.

var data C.CFDataRef = 0
var untrustedData C.CFDataRef = 0

if untrustedData == 0 {

What did you see instead?

errors.

@paperx123
Copy link
Author

checked out later, similar code change is done by commit b868616 for fix: 21897 . close issue here and turn to fabric-ca community to update the vendor file probably.

@golang golang locked and limited conversation to collaborators Mar 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants