Homebrew / homebrew-bundle

📦 Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask and the Mac App Store.
MIT License
5.37k stars 288 forks source link

Error: key not found: "libidn2" #910

Closed MalinnaLeach closed 3 years ago

MalinnaLeach commented 3 years ago

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: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:421:in block in each_strongly_connected_component_from' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:195:ineach' /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:349:inblock 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:incall' /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:intsort_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:into_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:intsort' /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:informulae_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:ininstalled_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:ininstalled?' /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:inrun' /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:inblock 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:ininstall' /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:inbundle' /usr/local/Homebrew/Library/Homebrew/brew.rb:122:in `

'

MikeMcQuaid commented 3 years ago

@MalinnaLeach Can you brew update and print the new message? Thanks!

MalinnaLeach commented 3 years ago

Installing wget has failed! Homebrew Bundle failed! 1 Brewfile dependency failed to install. Check for differences in your Brewfile.lock.json!

MalinnaLeach commented 3 years ago

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!

MikeMcQuaid commented 3 years ago

@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!

jswny commented 3 years ago

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:

``` $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /usr/bin/ldd: line 41: printf: write error: Broken pipe /usr/bin/ldd: line 43: printf: write error: Broken pipe ==> This script will install: /home/linuxbrew/.linuxbrew/bin/brew /home/linuxbrew/.linuxbrew/share/doc/homebrew /home/linuxbrew/.linuxbrew/share/man/man1/brew.1 /home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew /home/linuxbrew/.linuxbrew/Homebrew ==> The following existing directories will be made writable by user only: /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions ==> /usr/bin/sudo /bin/chmod u+rwx /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions ==> /usr/bin/sudo /bin/chmod 755 /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions ==> /usr/bin/sudo /bin/chown -R runner:docker /home/linuxbrew/.linuxbrew/Homebrew ==> Downloading and installing Homebrew... From https://github.com/Homebrew/brew * [new branch] dependabot/bundler/Library/Homebrew/sorbet-0.5.6284 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.6284 24bbfffc6..3bcd919a7 master -> origin/master * [new tag] 3.0.0 -> 3.0.0 HEAD is now at 3bcd919a7 Merge pull request #10578 from MikeMcQuaid/formula_bottle_hash To restore the stashed changes to /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core, run: cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core && git stash pop Updated 1 tap (homebrew/core). ==> New Formulae coin3d curlie dasel ht-rust libmd xcprojectlint ==> Updated Formulae abseil act adios2 aide aliddns aliyun-cli ansible ansifilter arangodb aravis arduino-cli argo argocd arm-linux-gnueabihf-binutils armadillo atlantis atomicparsley autopep8 autorest aws-cdk aws-google-auth awscli awscli@1 azure-cli babel bacula-fd benthos binutils binwalk bit-git bitrise bitwarden-cli brew-gem broot byteman cadence cake calc calicoctl carthage cassandra cassowary ccache certbot cfn-lint cfr-decompiler checkov checkstyle chezmoi circleci clamav closure-compiler cloudformation-cli cminpack code-server commitizen conan consul contentful-cli copilot corral cppad cpprestsdk cromwell crystal cubejs-cli cups curl dafny datasette deno detox devspace di digdag django-completion docker docker-completion docker-ls doctest dolt dosbox-x dosfstools driftctl dssim dstask duf dvc dyld-headers earthly ecl erlang eslint exploitdb faas-cli fastlane faudio fcct fennel fetch fetchmail findutils firebase-cli fizz flank flow flow-cli flux folly fq fzf gambit gatsby-cli gcc@10 gdal gdb gdu git git-delta git-gui gitleaks gitversion glib gmic go@1.14 gopls goreleaser gostatic gotop gradle grafana grails grokj2k groonga gtk4 gwenhywfar hadolint hamlib haproxy haxe hdf5@1.8 helm helmfile help2man homebank hpack httpie i686-elf-binutils imagemagick imagemagick@6 immudb inadyn influxdb infracost inframap ios-deploy ipython istioctl janet jasper jc jenkins jfrog-cli jql json5 juju jupyterlab just k3d kamel kim-api ko kotlin krb5 ksync kubeaudit kubecm kubevela kustomize languagetool lanraragi libarchive libbsd libebur128 libgnt libheif libical libopenmpt libosinfo libplctag libzzip lighttpd linkerd liquibase little-cms2 lmdb localstack logcheck logtalk lxc marked masscan maxwell md5deep meilisearch mercurial micronaut micropython mit-scheme mkclean mlkit mockery mongo-c-driver mosquitto mpdecimal msitools ncmpc ncspot neomutt netdata newrelic-cli nghttp2 ngspice nng node node-build node-sass node@14 node_exporter numcpp numpy oauth2_proxy oci-cli octave okteto ompl ooniprobe opam open-image-denoise openal-soft openapi-generator openimageio openkim-models openlibm openvdb operator-sdk orientdb ortp osm osm2pgrouting osm2pgsql osmium-tool ospray pandoc-crossref pdftoipe pdm pdns php php@7.3 php@7.4 phpstan phpunit picard-tools pigz pioneer plantuml pngcheck pnpm poppler ppsspp pre-commit prestodb privoxy prometheus-cpp pspg pulumi python-yq python@3.7 python@3.8 python@3.9 qca qmmp quex rbspy rclone re2 regipy reorder-python-imports rocksdb rqlite rt-audio rust-analyzer sbtenv scalaenv serverless sile smlpkg snakemake sonarqube sonarqube-lts sourcery spotbugs sqlite-utils sqlmap ssh-copy-id starship stgit structurizr-cli sundials svtplay-dl syncthing tanka taskwarrior-tui tcl-tk tektoncd-cli terraform terraform-ls terragrunt terrahub terrascan texmath tfenv tflint tfsec thors-serializer tile38 tomcat tomcat@7 tomcat@8 tor tox traefik translate-toolkit truffle trunk txr typescript ugrep unbound usb.ids uutils-coreutils vapoursynth-imwri vercel-cli vert.x vim virustotal-cli vsh vulkan-headers wangle wasmer wayland webpack whistle winetricks wireshark write-good x264 x3270 x86_64-elf-binutils xcinfo xmrig xonsh xtensor xterm yaegi yara youtube-dl youtubedr yq ==> Installation successful! ==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics data has been sent yet (or will be during this `install` run). ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations ==> Next steps: - Add Homebrew to your PATH in /home/runner/.bash_profile: echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/runner/.bash_profile eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) - Run `brew help` to get started - Further documentation: https://docs.brew.sh - Install the Homebrew dependencies if you have sudo access: sudo apt-get install build-essential See https://docs.brew.sh/linux for more information - We recommend that you install GCC: brew install gcc $ brew bundle -h ==> Tapping homebrew/bundle Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle'... Tapped 1 command (111 files, 1.8MB). Usage: brew bundle [subcommand] Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask, Mac App Store and Whalebrew. brew bundle [install]: Install and upgrade (by default) all dependencies from the Brewfile. You can specify the Brewfile location using --file or by setting the HOMEBREW_BUNDLE_FILE environment variable. You can skip the installation of dependencies by adding space-separated values to one or more of the following environment variables: HOMEBREW_BUNDLE_BREW_SKIP, HOMEBREW_BUNDLE_CASK_SKIP, HOMEBREW_BUNDLE_MAS_SKIP, HOMEBREW_BUNDLE_WHALEBREW_SKIP, HOMEBREW_BUNDLE_TAP_SKIP. brew bundle will output a Brewfile.lock.json in the same directory as the Brewfile if all dependencies are installed successfully. This contains dependency and system status information which can be useful in debugging brew bundle failures and replicating a "last known good build" state. You can opt-out of this behaviour by setting the HOMEBREW_BUNDLE_NO_LOCK environment variable or passing the --no-lock option. You may wish to check this file into the same version control system as your Brewfile (or ensure your version control system ignores it if you'd prefer to rely on debugging information from a local machine). brew bundle dump: Write all installed casks/formulae/images/taps into a Brewfile in the current directory. brew bundle cleanup: Uninstall all dependencies not listed from the Brewfile. This workflow is useful for maintainers or testers who regularly install lots of formulae. brew bundle check: Check if all dependencies are installed from the Brewfile. This provides a successful exit code if everything is up-to-date, making it useful for scripting. brew bundle list: List all dependencies present in the Brewfile. By default, only Homebrew dependencies are listed. brew bundle exec command: Run an external command in an isolated build environment based on the Brewfile dependencies. This sanitized build environment ignores unrequested dependencies, which makes sure that things you didn't specify in your Brewfile won't get picked up by commands like bundle install, npm install, etc. It will also add compiler flags which will help find keg-only dependencies like openssl, icu4c, etc. --file Read the Brewfile from this location. Use --file=- to pipe to stdin/stdout. --global Read the Brewfile from ~/.Brewfile. -v, --verbose install prints output from commands as they are run. check lists all missing dependencies. --no-upgrade install won't run brew upgrade on outdated dependencies. Note they may still be upgraded by brew install if needed. -f, --force dump overwrites an existing Brewfile. cleanup actually performs its cleanup operations. --cleanup install performs cleanup operation, same as running cleanup --force. --no-lock install won't output a Brewfile.lock.json. --all list all dependencies. --formula, --brews list Homebrew dependencies. --cask, --casks list Homebrew Cask dependencies. --tap, --taps list tap dependencies. --mas list Mac App Store dependencies. --whalebrew list Whalebrew dependencies. --describe dump adds a description comment above each line, unless the dependency does not have a description. --no-restart dump does not add restart_service to formula lines. --zap cleanup casks using the zap command instead of uninstall. -d, --debug Display any debugging information. -q, --quiet Make some output more quiet. -h, --help Show this message. $ git -C /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle commit 0aacbcac52ceee319965b80070c904cb7b062edf Merge: 3376cae 7d113d6 Author: Mike McQuaid Date: Wed Feb 10 16:57:33 2021 +0000 Merge pull request #912 from MikeMcQuaid/locker_nil bundle/locker: handle nil formulae_by_name. $ brew bundle --debug --verbose --no-lock --file brew/Brewfile /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fish.rb /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/scm/git --version /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre2.rb /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/scm/svn --version /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bzip2.rb /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/zlib.rb /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ncurses.rb Error: key not found: "bzip2" Please report this bug: https://github.com/Homebrew/homebrew-bundle/issues /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `fetch' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `tsort_each_child' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from' /home/linuxbrew/.linuxbrew/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' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `each' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:198:in `tsort_each_child' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from' /home/linuxbrew/.linuxbrew/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' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `each_key' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `each' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `to_a' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:176:in `tsort' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/tsort.rb:152:in `tsort' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:226:in `sort!' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:39:in `formulae_by_full_name' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:23:in `formulae' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:138:in `installed_formulae' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:121:in `formula_installed?' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:168:in `installed?' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:36:in `install_change_state!' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:27:in `run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_installer.rb:12:in `install' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:35:in `block in install' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:in `each' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:in `install' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/install.rb:10:in `run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-bundle/cmd/bundle.rb:94:in `bundle' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:122:in `
' ```
davidjeddy commented 3 years ago

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>'
MikeMcQuaid commented 3 years ago

@jswny What's in your Brewfile? @davidjeddy and @jswny and @MalinnaLeach: what's your brew check --verbose output?

jswny commented 3 years ago

@jswny What's in your Brewfile? @davidjeddy and @jswny and @MalinnaLeach: what's your brew 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?

MikeMcQuaid commented 3 years ago

@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 the Brewfile?

Either is fine, thanks.

jswny commented 3 years ago

@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 the Brewfile?

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
MikeMcQuaid commented 3 years ago

(let me know anyone whether this doesn't fix your issue but I'm pretty sure it should/does)

jswny commented 3 years ago

@MikeMcQuaid Thank you it works!

MalinnaLeach commented 3 years ago

@MikeMcQuaid - Thanks for this! All good now

davidjeddy commented 3 years ago

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>'
MikeMcQuaid commented 3 years ago

@davidjeddy If you brew update can you still reproduce this today?

MikeMcQuaid commented 3 years ago

@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!

davidjeddy commented 3 years ago

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.

MikeMcQuaid commented 3 years ago

@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?

davidjeddy commented 3 years ago

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?

MikeMcQuaid commented 3 years ago

@davidjeddy To the future where we can actually go to the pub again 😂