Skip to content

Fix undefined method 'all' for class Cask::Cask in deps command - #23663

Merged
MikeMcQuaid merged 1 commit into
Homebrew:mainfrom
middagj:fix-cmd-deps
Aug 26, 2026
Merged

Fix undefined method 'all' for class Cask::Cask in deps command#23663
MikeMcQuaid merged 1 commit into
Homebrew:mainfrom
middagj:fix-cmd-deps

Conversation

@middagj

@middagj middagj commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Similar to 92b5c0c but then for cmd/deps.rb

cmd/deps: require cask/cask

Currently brew deps fails with the following error:

$ brew deps
Error: undefined method 'all' for class Cask::Cask
/opt/homebrew/Library/Homebrew/cmd/deps.rb:195:in 'block in Homebrew::Cmd::Deps#run'
/opt/homebrew/Library/Homebrew/simulate_system.rb:40:in 'Homebrew::SimulateSystem.with'
/opt/homebrew/Library/Homebrew/cmd/deps.rb:125:in 'Homebrew::Cmd::Deps#run'
/opt/homebrew/Library/Homebrew/brew.rb:142:in '<main>'
Please report this issue:
  https://docs.brew.sh/Troubleshooting

I did not add a test, since in my opinion this should already be catch.


  • Have you followed our Contributing guidelines?
  • Have you checked for other open Pull Requests for the same change?
  • Have you explained what your changes do? Performance claims (e.g. "this is faster") must include brew benchmark results.
  • Have you explained why you'd like these changes included, not just what they do?
  • For bug fixes, have you given step-by-step brew commands to reproduce the bug?
  • Have you written new tests (excluding integration tests)? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) locally?

  • I did not use AI/LLM to create this PR, or I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

Currently `brew deps` fails with the following error:
```
$ brew deps
Error: undefined method 'all' for class Cask::Cask
/opt/homebrew/Library/Homebrew/cmd/deps.rb:195:in 'block in Homebrew::Cmd::Deps#run'
/opt/homebrew/Library/Homebrew/simulate_system.rb:40:in 'Homebrew::SimulateSystem.with'
/opt/homebrew/Library/Homebrew/cmd/deps.rb:125:in 'Homebrew::Cmd::Deps#run'
/opt/homebrew/Library/Homebrew/brew.rb:142:in '<main>'
Please report this issue:
  https://docs.brew.sh/Troubleshooting
```

@MikeMcQuaid MikeMcQuaid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MikeMcQuaid
MikeMcQuaid enabled auto-merge August 26, 2026 14:07
@MikeMcQuaid
MikeMcQuaid added this pull request to the merge queue Aug 26, 2026
Merged via the queue into Homebrew:main with commit a079638 Aug 26, 2026
49 checks passed
@middagj
middagj deleted the fix-cmd-deps branch August 26, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants