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

Get keychain.Item has no field or method SetAccess error at install #1

Open
victor5114 opened this issue Mar 30, 2020 · 4 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@victor5114
Copy link

victor5114 commented Mar 30, 2020

What version of Go are you using (go version)?

$ go version
`go version go1.14 darwin/amd64`

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
```
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/xxx/Library/Caches/go-build"
GOENV="/Users/xxx/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/xxx/Work/victor5114/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/g7/nkr9j63n7q91czbccql447x40000gn/T/go-build546639464=/tmp/go-build -gno-record-gcc-switches -fno-common"
```
OS Version macOS 10.15.2

What did you do?

go get -u github.com/jtbonhomme/gotp/cmd/gotp

What did you expect to see?

I guess it shouldn't raise any error .

What did you see instead?

../../../victor5114/go/src/github.com/99designs/keyring/keychain.go:151:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../../victor5114/go/src/github.com/99designs/keyring/keychain.go:151:21: undefined: keychain.Access
../../../victor5114/go/src/github.com/99designs/keyring/keychain.go:157:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../../victor5114/go/src/github.com/99designs/keyring/keychain.go:157:21: undefined: keychain.Access
../../../victor5114/go/src/github.com/99designs/keyring/keychain.go:187:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
<

@jtbonhomme
Copy link
Owner

Thank you Vic !
Let me check :)

@jtbonhomme
Copy link
Owner

Could you try this please:
go get github.com/jtbonhomme/gotp/cmd/gotp (without the '-u' option) ?

@victor5114
Copy link
Author

Hi JT !
Still having the same error when running the command without -u option.
I've just found another opened issue on keyring repo. It looks like keyring has not been able to sync with latest version of go-keychain released on MacOS Catalina. Let's wait for a updated version of keyring then.

@jtbonhomme
Copy link
Owner

Hi @victor5114,
Could you check with the last version (0.2.6) ?
Cheers

@jtbonhomme jtbonhomme self-assigned this Feb 10, 2021
@jtbonhomme jtbonhomme added the bug Something isn't working label Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants