Skip to content

Commit

Permalink
Merge pull request #16743 from bevanjkay/cask-disable-reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Feb 25, 2024
2 parents e9cb65b + 146451a commit c6d9592
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/deprecate_disable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ module DeprecateDisable
}.freeze

CASK_DEPRECATE_DISABLE_REASONS = {
discontinued: "is discontinued upstream",
discontinued: "is discontinued upstream",
no_longer_available: "is no longer available upstream",
unmaintained: "is not maintained upstream",
}.freeze

def type(formula_or_cask)
Expand Down
2 changes: 2 additions & 0 deletions docs/Deprecating-Disabling-and-Removing-Casks.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ When a cask is deprecated or disabled, a reason explaining the action must be pr
There are two ways to indicate the reason. The preferred way is to use a pre-existing symbol to indicate the reason. The available symbols are listed below and can be found in the [`DeprecateDisable` module](https://github.com/Homebrew/brew/blob/master/Library/Homebrew/deprecate_disable.rb):

- `:discontinued`: the cask is discontinued upstream
- `:no_longer_available`: the cask is no longer available upstream
- `:unmaintained`: the cask is not maintained upstream

These reasons can be specified by their symbols (the comments show the message that will be displayed to users):

Expand Down

0 comments on commit c6d9592

Please sign in to comment.