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

Update go-keychain dependency to latest #17

Merged
merged 1 commit into from
Mar 28, 2018
Merged

Update go-keychain dependency to latest #17

merged 1 commit into from
Mar 28, 2018

Conversation

hraban
Copy link
Contributor

@hraban hraban commented Mar 12, 2018

Fixes build errors on my Mac (10.13.3).

MacBook-Pro:keyring hraban$ go build
# github.com/99designs/keyring/vendor/github.com/keybase/go-keychain
vendor/github.com/keybase/go-keychain/corefoundation.go:29: cannot use nil as type _Ctype_CFDataRef in return argument
vendor/github.com/keybase/go-keychain/corefoundation.go:36: cannot convert nil to type _Ctype_CFDataRef
vendor/github.com/keybase/go-keychain/corefoundation.go:37: cannot use nil as type _Ctype_CFDataRef in return argument
vendor/github.com/keybase/go-keychain/corefoundation.go:62: cannot convert nil to type _Ctype_CFDictionaryRef
vendor/github.com/keybase/go-keychain/corefoundation.go:63: cannot use nil as type _Ctype_CFDictionaryRef in return argument
vendor/github.com/keybase/go-keychain/corefoundation.go:74: cannot convert &keys[0] (type *_Ctype_CFTypeRef) to type *unsafe.Pointer
vendor/github.com/keybase/go-keychain/corefoundation.go:74: cannot convert &values[0] (type *_Ctype_CFTypeRef) to type *unsafe.Pointer
vendor/github.com/keybase/go-keychain/corefoundation.go:87: cannot use nil as type _Ctype_CFStringRef in return argument
vendor/github.com/keybase/go-keychain/corefoundation.go:90: cannot use nil as type _Ctype_CFStringRef in return argument
vendor/github.com/keybase/go-keychain/corefoundation.go:141: cannot convert &a[0] (type *_Ctype_CFTypeRef) to type *unsafe.Pointer
vendor/github.com/keybase/go-keychain/corefoundation.go:141: too many errors

I'm not sure why this is, but manually updating go-keychain solved the problem so I just left it at that.

Fixes build errors on my Mac (10.13.3).
@hraban
Copy link
Contributor Author

hraban commented Mar 12, 2018

I'm getting similar build errors on aws-vault but those seem less straight-forward to solve :( any ideas? Backstory: I'm working on a 1 password backend.

@dfuentes
Copy link
Contributor

The original build errors were because of a breaking change in go1.10 w.r.t. cgo code (keybase/go-keychain#25). I'm running into this as well for a project that pulls uses this one.

@hraban
Copy link
Contributor Author

hraban commented Mar 15, 2018

so I'm imagining my PR, as-is, breaks compat with go ≤1.9 ?

I've been out of the go loop for a while, but why did they make a backwards incompatible change in a minor? >.<

@dfuentes
Copy link
Contributor

Nope, your PR is fine. The change was backwards incompatible, but by using build constraints, go-keychain was able to retain compatibility with both older go versions and newer ones.

@hraban
Copy link
Contributor Author

hraban commented Mar 15, 2018 via email

@lox lox merged commit 96c6464 into 99designs:master Mar 28, 2018
@hraban hraban deleted the update-gkc branch March 28, 2018 22:16
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