Skip to content

jobs --auto dependency resolution bug #22837

Description

@bluefing

brew doctor output

brew doctor                                                       13:06:24
Your system is ready to brew.

Verification

  • I ran brew update twice and am still able to reproduce my issue.
  • My "brew doctor output" above says Your system is ready to brew or a definitely unrelated Tier message.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

brew config                                                       12:40:16
HOMEBREW_VERSION: 6.0.2-144-g09203ec
ORIGIN: https://github.com/Homebrew/brew
HEAD: 09203ecc68212c4e9017d85ee6244a6fa5567b96
Last commit: 3 hours ago
Branch: main
Core tap: N/A
Core cask tap: N/A
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: ["--appdir=~/Applications"]
HOMEBREW_DOWNLOAD_CONCURRENCY: 16
HOMEBREW_EDITOR: nvim
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_REQUIRE_TAP_TRUST: set
Homebrew Ruby: 4.0.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.5_1/bin/ruby
CPU: octa-core 64-bit arm_ibiza
Clang: 21.0.0 build 2100
Git: 2.54.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 26.5.1-arm64
CLT: 26.5.0.0.1777544298
Xcode: N/A
Rosetta 2: false

What were you trying to do (and why)?

install tmux and tpack

What happened (include all command output)?

Error: A `brew install --formula tmux` process has already locked
/home/linuxbrew/.linuxbrew/Cellar/linux-headers@6.8.

Error: A `brew install --cask tmuxpack/tpack/tpack --adopt` process has already
locked /home/repro/.cache/Homebrew/downloads/...--gcc--16.1.0...

The install is also reported as successful despite the failures

🍺  tpack was successfully installed!
Installing tpack has failed!
Installing tmux has failed!
`brew bundle` complete! 3 Brewfile dependencies now installed.

  brew bundle exit code: 0 

Seems related to the bug I raised previously #22293

What did you expect to happen?

jobs --auto would order the installs taking account of dependencies

Step-by-step reproduction instructions (running brew commands)

Brewfile


tap "tmuxpack/tpack"
brew "tmux"
cask "tmuxpack/tpack/tpack"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions