Skip to content

Conversation

@botantony
Copy link
Member

  • 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?

Closes #21132

Copilot AI review requested due to automatic review settings November 27, 2025 13:27
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 adds support for the HOMEBREW_UPGRADE_GREEDY_CASKS environment variable to the brew outdated command, making its behavior consistent with the brew upgrade command. The environment variable allows users to specify a space-separated list of casks that should be treated as if the --greedy flag was passed when checking for outdated versions.

Key Changes:

  • Introduced a new upgrade_greedy_cask? method that checks if a cask should be treated as greedy based on either the --greedy flag or the HOMEBREW_UPGRADE_GREEDY_CASKS environment variable
  • Updated three call sites in the outdated command to use this new method instead of directly passing args.greedy?
  • The implementation uses lazy initialization to parse the environment variable only once per command execution

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

@botantony botantony force-pushed the outdated-greedy-casks branch from 22f61f5 to b418b02 Compare November 27, 2025 13:35
Closes #21132

Signed-off-by: botantony <antonsm21@gmail.com>
Copilot AI review requested due to automatic review settings November 27, 2025 13:39
@botantony botantony force-pushed the outdated-greedy-casks branch from b418b02 to 8983a01 Compare November 27, 2025 13:39
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


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

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 great, thanks @botantony!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Nov 27, 2025
Merged via the queue into main with commit ff0eb71 Nov 27, 2025
41 checks passed
@MikeMcQuaid MikeMcQuaid deleted the outdated-greedy-casks branch November 27, 2025 15:47
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.

outdated command should list outdated casks from HOMEBREW_UPGRADE_GREEDY_CASKS

3 participants