keyring
keyring copied to clipboard
TrustedApplicationAccess Deprecated
keyring
throws compilation erros due to incompatibility with the latest version of go-keychain
.
https://github.com/keybase/go-keychain/pull/60
# github.com/99designs/keyring
428./keychain.go:151:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
429./keychain.go:151:21: undefined: keychain.Access
430./keychain.go:157:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
431./keychain.go:157:21: undefined: keychain.Access
432./keychain.go:187:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess
Just encountered this issue myself, anyone know of a workaround?
Hey @99designs! Why did you delete comments?
We delete comments that do not add substance to the conversation. Please use the 👍 reaction rather than leaving +1 comments
Any update here?
I found the same problem when installing github.com/apache/pulsar-client-go/pulsar
,If you find a solution, please let me know.
osx 10.14.5 go 1.14
I found a workaround, the issue because of keybase/go-keychain
removed deprecated API. What we can do just use keybase/go-keychain
revision ccd67945d59e2e76561507e6d274dfe97905d40e or before that.
See the comment at https://github.com/99designs/keyring/issues/66#issuecomment-711492701 on how to address this issue.
PRs welcome
I found same problem as https://github.com/99designs/keyring/issues/64#issuecomment-730478752 when installing github.com/apache/pulsar-client-go/pulsar
also.
../../pkg/mod/github.com/99designs/[email protected]/keychain.go:136:8: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../pkg/mod/github.com/99designs/[email protected]/keychain.go:181:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../pkg/mod/github.com/99designs/[email protected]/keychain.go:181:21: undefined: keychain.Access
../../pkg/mod/github.com/99designs/[email protected]/keychain.go:187:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../pkg/mod/github.com/99designs/[email protected]/keychain.go:187:21: undefined: keychain.Access
osX 10.14.6 go1.15.3 darwin/amd64
I'm experiencing the exact same issue.
Phweeew 💀

osX 11.0.1 ( BigSur ) go1.15.5 darwing/amd64
The workaround is to set to an older commit of keyring, for instance,
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4
You can set this in go.mod. This is an example to build Pulsar Go client. https://github.com/kafkaesque-io/sample-pulsar-go-client/blob/master/go.mod#L7
Or simply add this line to go.mod
:
replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4
If this happens on mac, this highly depends on the local mac environment. In my case, updated xcode to the latest and rebooted, then the compilation error disappeared.
os: macOS Mojave 10.14.6 go: go1.15.3 darwin/amd64 xcode: 11.3.1
I encountered this error when I set 2FA on Github.
Or simply add this line to
go.mod
:replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4
Thank you for solving my problem