go-delve / homebrew-delve

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

Executable does not get installed on MacOS #18

Closed cmcginty closed 6 years ago

cmcginty commented 7 years ago

Running the suggest brew install command produces a lot of output, but does not correctly install dlv to the path.

==> Installing delve from go-delve/delve
==> Cloning https://github.com/derekparker/delve.git
Cloning into '/Users/cmcginty/Library/Caches/Homebrew/delve--git'...
remote: Counting objects: 627, done.
remote: Compressing objects: 100% (517/517), done.
remote: Total 627 (delta 130), reused 338 (delta 80), pack-reused 0
Receiving objects: 100% (627/627), 1.25 MiB | 2.42 MiB/s, done.
Resolving deltas: 100% (130/130), done.
==> Checking out branch master
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 -out dlv-cert.cer -keyout dlv-cert.k
==> [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/cmcginty/Library/Logs/Homebrew/delve/02.sudo:
2017-08-09 15:00:50 -0700

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
Gurpartap commented 7 years ago

The underlying error is "Failed to execute: sudo" if you install in verbose mode. See #17 for workaround.