cask/dsl: remap unsigned to fails_gatekeeper_check

This commit is contained in:
Bevan Kay 2025-08-18 16:15:27 +10:00
parent 6c567067fd
commit 869bdfa10a
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57
2 changed files with 7 additions and 1 deletions

View File

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

View File

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