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

Fix C code to work with Go 1.11 #31

Merged
merged 5 commits into from
Aug 1, 2018
Merged

Fix C code to work with Go 1.11 #31

merged 5 commits into from
Aug 1, 2018

Conversation

akalin-keybase
Copy link
Contributor

golang/go@94076feef 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.

@akalin-keybase
Copy link
Contributor Author

akalin-keybase commented Aug 1, 2018

Also gave Travis perms to access this repo and go-kext, using the newfangled Checks API.

@kevinburkeomg
Copy link

Ah, this is perfect, thanks!

@akalin-keybase akalin-keybase merged commit 15d3657 into master Aug 1, 2018
@akalin-keybase akalin-keybase deleted the go1.11-fix branch August 1, 2018 17:02
akalin-keybase added a commit to keybase/go-kext that referenced this pull request Aug 1, 2018
golang/go@94076feef 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 a port of keybase/go-keychain#31 .
jiacfan pushed a commit to jiacfan/keychain that referenced this pull request Aug 29, 2018
golang/go@94076feef 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 keybase#30 by
@kevinburkeomg.

(cherry picked from commit 15d3657)
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