Homebrew / homebrew-bundle

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

Locking step fails with "Error: No available tap homebrew/core." if homebrew/core isn't tapped. #1169

Closed faisal closed 1 year ago

faisal commented 1 year ago

Bundling fails in lockfile generation when using brew 4 with homebrew/core untapped.

Steps:

  1. brew update to 4.0 or later.
  2. brew untap homebrew/core
  3. brew bundle

Expected behavior: Homebrew completes the bundling process.

Actual behavior: Homebrew goes through the bundling process but fails in locking, reporting "Error: No available tap homebrew/core."

Notes:

colindean commented 1 year ago

I'm not able to reproduce this immediately.

I'm on HOMEBREW_VERSION: 4.0.1-58-g82a36d2 on Linux (Debian 11.6) and just today updated to 4.x and untapped homebrew/core. I'm able to run brew bundle with a variety of Brewfiles I have laying around.

Can you provide the output of:

colindean commented 1 year ago

I just caught that I have lockfiles disabled on this machine. I'm able to reproduce it now.

unset HOMEBREW_BUNDLE_NO_LOCK; brew bundle --file=Brewfile.all                                                                                                                
Using colindean/personal
Using bash
Using bash-completion@2
Using bat
Using git-delta
Using coreutils
Using eoconv
Using fzf
Using zoxide
Error: No available tap homebrew/core.
colindean commented 1 year ago

The quick workaround is to use --no-lock or set export HOMEBREW_BUNDLE_NO_LOCK=1.