go-delve / homebrew-delve

Homebrew formula for the Delve Go debugger
Apache License 2.0
48 stars 13 forks source link

The specified item could not be found in the keychain #16

Closed Demired closed 6 years ago

Demired commented 7 years ago

Mac ox 10.12.6 go version go1.8.3 darwin/amd64 ide atom

bash-3.2$ brew install go-delve/delve/delve
==> Installing delve from go-delve/delve
==> Using the sandbox
==> Downloading https://github.com/derekparker/delve/archive/v1.0.0-rc.1.tar.gz
Already downloaded: /Users/zhangyuan/Library/Caches/Homebrew/delve-1.0.0-rc.1.tar.gz
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
==> Generating dlv-cert
==> openssl req -new -newkey rsa:2048 -x509 -days 3650 -nodes -config dlv-cert.cfg -extensions codesign_reqext -batch -
==> [SUDO] Installing dlv-cert as root
==> sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain dlv-cert.cer
Last 15 lines from /Users/zhangyuan/Library/Logs/Homebrew/delve/02.sudo:
2017-08-01 14:26:28 +0800

sudo
security
add-trusted-cert
-d
-r
trustRoot
-k
/Library/Keychains/System.keychain
dlv-cert.cer

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/go-delve/homebrew-delve/issues
breezewish commented 7 years ago

+1.

grettke commented 7 years ago

I just ran into this.

jaynagpaul commented 7 years ago

Same here Edit: Seems like SecKeychainSearchCopyNext is depreciated

aarzilli commented 7 years ago

so we call a command line tool that's part of macOS and that tool doesn't work because it's using a deprecated interface??

Anyway, if you don't care about the native backend you could just use go get.

ginman86 commented 7 years ago

+1

skovtunenko commented 7 years ago

Same thing for me, on MacOS 10.11.6 (15G1611)

aniruddha-adhikary commented 6 years ago

Also affected. MacOS 10.11.6

andreasjacobsen93 commented 6 years ago

Me too. MacOS 10.13

mrhwick commented 6 years ago

Anyone have a fix for this? I just encountered it as well.