Skip to content

Conversation

@patchback
Copy link

@patchback patchback bot commented Apr 21, 2025

This is a backport of PR #10013 as merged into main (4b9373f).

SUMMARY

Homebrew: Emit a useful error message if brew info reports a package tap is null. This can happen if an installed package is subsequently removed from the tap (e.g. it is withdrawn by homebrew).

Fixes #10012

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

homebrew

ADDITIONAL INFORMATION

Note: the task fails with an error referencing the broken package, as requested in the bug report. No attempt is made to continue or recover the task.

Note: failure case is hard to reproduce. No test added.

…tap is null. (#10013)

* Fix #10012.

Homebrew: Emit a useful error message if a package tap is null.  This can happen if an installed package is subsequently removed from the tap (e.g. it is withdrawn by homebrew).

* Added changelogs fragment for PR 10013

* Do not raise error when tap is null in package_detail
pylint: remove trailing whitespace

* Minor: Update plugins/modules/homebrew.py

Co-authored-by: Felix Fontein <[email protected]>

* Minor: Update changelogs/fragments/10012-improve-error-handling-homebrew-missing-tap.yml

Co-authored-by: Alexei Znamensky <[email protected]>

* Update plugins/modules/homebrew.py

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Alexei Znamensky <[email protected]>
(cherry picked from commit 4b9373f)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type) labels Apr 21, 2025
@felixfontein felixfontein merged commit 0310c78 into stable-10 Apr 21, 2025
141 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-10/4b9373f694587bcd074472d149448cfef6344f93/pr-10013 branch April 21, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants