Skip to content

Conversation

@BirmacherAkos
Copy link
Contributor

No description provided.

func FindIdentity(identityLabel string) ([]IdentityWithRefModel, error) {

queryDict := C.CFDictionaryCreateMutable(nil, 0, nil, nil)
queryDict := C.CFDictionaryCreateMutable(C.kCFAllocatorDefault, 0, nil, nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reference/docs why C.kCFAllocatorDefault?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the change was based on keybase/go-keychain#31 where it was explained:

golang/go@94076fe made C type checking stricter.
This caused problems where we were passing in nil for CFAllocatorRef, as Go 1.11
will require those to be 0 instead.

Use the typed constant kCFAllocatorDefault to avoid this problem.

Also add a .travis.yml config and test on various Go versions, including master.

This PR is based on code from #30 by
@kevinburkeomg.

Copy link
Contributor

@viktorbenei viktorbenei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 👍

@BirmacherAkos BirmacherAkos merged commit e4bebc5 into master Jan 15, 2019
@godrei godrei deleted the go_1.11 branch October 3, 2019 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants