Closed MalinnaLeach closed 3 years ago
@MalinnaLeach Can you brew update
and print the new message? Thanks!
Installing wget has failed! Homebrew Bundle failed! 1 Brewfile dependency failed to install. Check for differences in your Brewfile.lock.json!
Although the above is it running locally, on Circle CI it is still showing the same error. I thought the brew bundle command automatically updates brew anyway? Above the error it says Auto-updated Homebrew!
@MalinnaLeach Your original message was helpful but I'm not sure what revision homebrew/bundle
is at so the output of git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle log -1
as well as the backtrace above with --debug
would help figure out what happened. Thanks!
Although the above is it running locally, on Circle CI it is still showing the same error. I thought the brew bundle command automatically updates brew anyway? Above the error it says Auto-updated Homebrew!
Weirdly enough, I'm getting the same error but only in GitHub actions and for bzip2
(Error: key not found: "bzip2"
). Using an Ubuntu 20.10 container it works fine. Although Actions runs with Ubuntu 18.04. The Bundle revision is 0aacbcac52ceee319965b80070c904cb7b062edf
.
Full log:
I get a similar error but w/ terraform being the target
MacOs Big Sur
Python 3.7.0
pip pip 21.0.1
Homebrew 3.0.0
brew "Arkweid/lefthook/lefthook"
brew "pipenv"
brew "terragrunt", args: ["ignore-dependencies"]
brew "prometheus" # for promtool
brew "tfenv"
brew "gnupg" # terraform pgp_key
tap "kwilczynski/homebrew-pkenv"
brew "pkenv"
brew "python"
brew "jq"
cask "aws-vault"
brew bundle
$ brew bundle
Error: key not found: "terraform"
Please report this bug:
https://github.com/Homebrew/homebrew-bundle/issues
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `fetch'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `tsort_each_child'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `call'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `each'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `tsort_each_child'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `call'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `each_key'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `call'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `each'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `to_a'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `tsort'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:152:in `tsort'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:226:in `sort!'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:39:in `formulae_by_full_name'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:23:in `formulae'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:138:in `installed_formulae'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:121:in `formula_installed?'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:168:in `installed?'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:36:in `install_change_state!'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:27:in `run'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:12:in `install'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:35:in `block in install'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:in `each'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:in `install'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/install.rb:10:in `run'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/cmd/bundle.rb:94:in `bundle'
/usr/local/Homebrew/Library/Homebrew/brew.rb:122:in `<main>'
@jswny What's in your Brewfile
?
@davidjeddy and @jswny and @MalinnaLeach: what's your brew check --verbose
output?
@jswny What's in your
Brewfile
? @davidjeddy and @jswny and @MalinnaLeach: what's yourbrew check --verbose
output?
Brewfile
:
brew "fish"
brew "coreutils"
brew "tmux"
brew "neovim"
brew "fzf"
brew "fd"
brew "bat"
brew "git-delta"
brew "thefuck"
brew "shellcheck"
brew "python"
brew "erlang"
brew "elixir"
I assume you mean brew bundle check --verbose
, but do you want that before or after I'm doing an install (which fails) from the Brewfile
?
@jswny Thanks!
I assume you mean
brew bundle check --verbose
, but do you want that before or after I'm doing an install (which fails) from theBrewfile
?
Either is fine, thanks.
@jswny Thanks!
I assume you mean
brew bundle check --verbose
, but do you want that before or after I'm doing an install (which fails) from theBrewfile
?Either is fine, thanks.
From before I attempt to install:
brew bundle can't satisfy your Brewfile's dependencies.
→ Formula fish needs to be installed or updated.
→ Formula coreutils needs to be installed or updated.
→ Formula tmux needs to be installed or updated.
→ Formula neovim needs to be installed or updated.
→ Formula fzf needs to be installed or updated.
→ Formula fd needs to be installed or updated.
→ Formula bat needs to be installed or updated.
→ Formula git-delta needs to be installed or updated.
→ Formula thefuck needs to be installed or updated.
→ Formula shellcheck needs to be installed or updated.
→ Formula python needs to be installed or updated.
→ Formula erlang needs to be installed or updated.
→ Formula elixir needs to be installed or updated.
Satisfy missing dependencies with `brew bundle install`.
Kernel.exit
(let me know anyone whether this doesn't fix your issue but I'm pretty sure it should/does)
@MikeMcQuaid Thank you it works!
@MikeMcQuaid - Thanks for this! All good now
Different dependency but same error continues.
➜ iac git:(master) brew --version
Homebrew 3.0.0
Homebrew/homebrew-core... 920d0...
Homebrew/homebrew-cask... 428eca...
➜ iac git:(master) cat Brewfile
brew "Arkweid/lefthook/lefthook"
brew "pipenv"
brew "terragrunt", args: ["ignore-dependencies"]
brew "prometheus" # for promtool
brew "tfenv"
brew "gnupg" # terraform pgp_key
tap "kwilczynski/homebrew-pkenv"
brew "pkenv"
brew "python"
brew "jq"
cask "aws-vault"
➜ iac git:(master) brew bundle check --verbose
Error: key not found: "terraform"
Please report this bug:
https://github.com/Homebrew/homebrew-bundle/issues
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:in `fetch'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:in `tsort_each_child'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `call'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:in `each'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:in `tsort_each_child'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `call'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `each_key'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `call'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `each'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `to_a'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `tsort'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:152:in `tsort'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:223:in `sort!'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:39:in `formulae_by_full_name'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:23:in `formulae'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:138:in `installed_formulae'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:121:in `formula_installed?'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:97:in `formula_installed_and_up_to_date?'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_checker.rb:10:in `installed_and_up_to_date?'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:28:in `block in full_check'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:28:in `reject'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:28:in `full_check'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:51:in `find_actionable'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:97:in `formulae_to_install'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:78:in `block in check'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:76:in `map'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:76:in `public_send'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/checker.rb:76:in `check'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/check.rb:14:in `run'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/cmd/bundle.rb:126:in `bundle'
/usr/local/Homebrew/Library/Homebrew/brew.rb:122:in `<main>'
@davidjeddy If you brew update
can you still reproduce this today?
@davidjeddy If so can you try to shrink your Brewfile
to the minimum possible that still reproduces this issue (i.e. keep deleting lines until you have the minimum ~2 that reproduce this), paste a new backtrace and your brew bundle check --verbose
output? Thanks!
Brewfile
brew "Arkweid/lefthook/lefthook"
brew "pipenv"
brew "terragrunt", args: ["ignore-dependencies"]
brew bundle
If you run the command brew bundle
a second time, the missing key error occurres.
@davidjeddy Sorry, can you still reproduce this after another brew update
(just pushed another fix in the last hour)? If so, I'll reopen. With that minimal Brewfile
what's the brew doctor
output and the missing key?
Using Python 3.7.9 on Big Sur and Brew 3.0.1 the issues appears to be correctly. TYVM for you help @MikeMcQuaid , where should I send the beer?
@davidjeddy To the future where we can actually go to the pub again 😂
Error: key not found: "libidn2" Please report this bug: https://github.com/Homebrew/homebrew-bundle/issues /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:in'
fetch' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:in
tsort_each_child' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:incall' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in
each_strongly_connected_component_from' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:421:inblock in each_strongly_connected_component_from' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:in
each' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:intsort_each_child' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in
call' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:ineach_strongly_connected_component_from' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:349:in
block in each_strongly_connected_component' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:ineach_key' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in
call' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:ineach_strongly_connected_component' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:226:in
tsort_each' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:ineach' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in
to_a' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:intsort' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:152:in
tsort' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:223:insort!' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:39:in
formulae_by_full_name' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:23:informulae' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:138:in
installed_formulae' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:121:informula_installed?' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:168:in
installed?' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:36:ininstall_change_state!' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:27:in
run' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:12:ininstall' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:35:in
block in install' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:ineach' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:in
install' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/install.rb:10:inrun' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/cmd/bundle.rb:94:in
bundle' /usr/local/Homebrew/Library/Homebrew/brew.rb:122:in `