Merge pull request #16743 from bevanjkay/cask-disable-reasons

This commit is contained in:
Patrick Linnane 2024-02-25 10:23:34 -08:00 committed by GitHub
commit c6d959218f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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):