From 869bdfa10a83b3091364b0a4897edb5664f7c3ad Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Mon, 18 Aug 2025 16:15:27 +1000 Subject: [PATCH] cask/dsl: remap `unsigned` to `fails_gatekeeper_check` --- Library/Homebrew/cask/dsl.rb | 6 ++++++ Library/Homebrew/deprecate_disable.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/dsl.rb b/Library/Homebrew/cask/dsl.rb index 12a530916c..d0df974906 100644 --- a/Library/Homebrew/cask/dsl.rb +++ b/Library/Homebrew/cask/dsl.rb @@ -625,6 +625,9 @@ module Cask raise ArgumentError, "more than one of replacement, replacement_formula and/or replacement_cask specified!" end + # odeprecate: remove this remapping when the :unsigned reason is removed + because = :fails_gatekeeper_check if because == :unsigned + if replacement odeprecated( "deprecate!(:replacement)", @@ -651,6 +654,9 @@ module Cask raise ArgumentError, "more than one of replacement, replacement_formula and/or replacement_cask specified!" end + # odeprecate: remove this remapping when the :unsigned reason is removed + because = :fails_gatekeeper_check if because == :unsigned + if replacement odeprecated( "disable!(:replacement)", diff --git a/Library/Homebrew/deprecate_disable.rb b/Library/Homebrew/deprecate_disable.rb index 3576af975e..bade1c0126 100644 --- a/Library/Homebrew/deprecate_disable.rb +++ b/Library/Homebrew/deprecate_disable.rb @@ -27,7 +27,7 @@ module DeprecateDisable no_longer_available: "is no longer available upstream", no_longer_meets_criteria: "no longer meets the criteria for acceptable casks", unmaintained: "is not maintained upstream", - fails_gatekeeper_check: "does not pass macOS Gatekeeper check", + fails_gatekeeper_check: "does not pass the macOS Gatekeeper check", # odeprecate: remove the unsigned reason in a future release unsigned: "is unsigned or does not meet signature requirements", }.freeze, T::Hash[Symbol, String])