Skip to content

Conversation

@bk-one
Copy link
Contributor

@bk-one bk-one commented Dec 23, 2025

This applies the change for #21301

the top-level comment for tap-info is unneccessary, but the linter complained that it was missing, so applying the boyscout-rule here, even if it's unrelated to the PR.


  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

Copilot AI review requested due to automatic review settings December 23, 2025 08:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements failure exit behavior for the tap-info command when querying information about taps that are not installed, ensuring the command returns a non-zero exit code in such cases.

Key changes:

  • Added Homebrew.failed = true when a tap is not installed in the text output path
  • Added a test case to verify that tap-info fails for unknown taps

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Library/Homebrew/cmd/tap-info.rb Sets the failure flag when displaying information for non-installed taps
Library/Homebrew/test/cmd/tap-info_spec.rb Adds integration test verifying failure exit code for unknown taps

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bk-one bk-one marked this pull request as draft December 23, 2025 09:05
@bk-one bk-one marked this pull request as ready for review December 23, 2025 09:27
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Looks good so far, thanks!

@bk-one bk-one requested a review from MikeMcQuaid December 24, 2025 06:17
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 24, 2025
Merged via the queue into Homebrew:main with commit 107ee61 Dec 24, 2025
36 checks passed
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