keyring icon indicating copy to clipboard operation
keyring copied to clipboard

TrustedApplicationAccess Deprecated

Open t0rr3sp3dr0 opened this issue 4 years ago • 14 comments

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

t0rr3sp3dr0 avatar Mar 03 '20 22:03 t0rr3sp3dr0

Just encountered this issue myself, anyone know of a workaround?

aenegri avatar May 17 '20 01:05 aenegri

Hey @99designs! Why did you delete comments?

alessio avatar Sep 08 '20 18:09 alessio

We delete comments that do not add substance to the conversation. Please use the 👍 reaction rather than leaving +1 comments

mtibben avatar Sep 09 '20 00:09 mtibben

Any update here?

lixingwang avatar Nov 11 '20 17:11 lixingwang

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

zy3101176 avatar Nov 19 '20 16:11 zy3101176

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.

lixingwang avatar Nov 19 '20 16:11 lixingwang

See the comment at https://github.com/99designs/keyring/issues/66#issuecomment-711492701 on how to address this issue.

PRs welcome

mtibben avatar Nov 20 '20 01:11 mtibben

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

yukshimizu avatar Dec 01 '20 14:12 yukshimizu

I'm experiencing the exact same issue.

Phweeew 💀

Screen Shot 2020-12-08 at 2 13 15 AM

osX 11.0.1 ( BigSur ) go1.15.5 darwing/amd64

Just4Ease avatar Dec 08 '20 01:12 Just4Ease

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

zzzming avatar Dec 10 '20 00:12 zzzming

Or simply add this line to go.mod:

replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4

ivanvanderbyl avatar Dec 11 '20 01:12 ivanvanderbyl

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

yukshimizu avatar Dec 11 '20 02:12 yukshimizu

I encountered this error when I set 2FA on Github.

carameleon avatar Feb 09 '21 04:02 carameleon

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

Manual-S avatar Dec 09 '21 12:12 Manual-S