-
Notifications
You must be signed in to change notification settings - Fork 139
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
Build error on macOS 10.14 (kcItem.SetAccess undefined, undefined: keychain.Access) #94
Comments
|
I found a proposed solution in apache/pulsar-client-go#594 The solution is to add this replace to
|
What project were you building when you ran into this error? The errors are caused by the removal of some deprecated APIs in recent versions of go-keychain (keybase/go-keychain#76). If you were only depending on 99designs/keyring, you should have picked up an older version of keybase/go-keychain, and possibly just seen deprecation warnings instead of the compile error. I'm just wondering if #102 would fix the issue for you, or if there is some other dependency bringing in the newer version of go-keychain. |
@pgier this is the project https://github.com/endorama/2ami; linked here there is the PR I opened to fix this issue (through the |
@pgier Without looking too much into it yet, is there a bigger reason why we can't use the newer upstream keybase/go-keychain and have to rely on the older forked 99designs version of it? I prefer your solution over having a replace statement, but just curious what it would take to directly use upstream. |
Upstream made an error removing large portions of code they believed were deprecated APIs in keybase/go-keychain#60. The situation is much more complicated, and while Apple has marked the APIs deprecated it's unlikely they will ever be removed due to the useful features they provide. I've just checked and it appears they've reversed the removals keybase/go-keychain#77 - if that's the case we can possibly move back to upstream |
no spoke too soon - keybase/go-keychain#77 hasn't restored the APIs required for keyring |
@dewey As @mtibben described, the latest version of upstream keybase/go-keychain has removed the deprecated APIs which are required for this project. The Apple docs don't seem to list any replacements for the deprecated functions, so it seems like we're kind of stuck for now. |
I'm experiencing a build error in a macOS 10.14 test runner with
go 1.17.1
for version1.1.6
This is the relevant logs:
The reported issues are:
kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
undefined: keychain.Access
Referenced at:
keyring/keychain.go
Line 136 in 68286ee
keyring/keychain.go
Line 181 in 68286ee
keyring/keychain.go
Line 187 in 68286ee
The text was updated successfully, but these errors were encountered: