Skip to content

Commit e39a2e9

Browse files
authored
Merge pull request #20999 from Homebrew/cask-signing-audit-message
cask/audit: adjust signing failure error message
2 parents 113306f + 60072e0 commit e39a2e9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Library/Homebrew/cask/audit.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,13 +550,20 @@ def audit_signing
550550
next true if cask.deprecated? && cask.deprecation_reason == :fails_gatekeeper_check
551551
next true if is_in_skiplist
552552

553-
add_error <<~EOS, location: url.location
553+
signing_failure_message = <<~EOS
554554
Signature verification failed:
555555
#{result.merged_output}
556-
macOS on ARM requires software to be signed.
557-
Please contact the upstream developer to let them know they should sign and notarize their software.
558556
EOS
559557

558+
if cask.tap.official?
559+
signing_failure_message += <<~EOS
560+
The homebrew/cask tap requires all casks to be signed and notarized by Apple.
561+
Please contact the upstream developer and ask them to sign and notarize their software.
562+
EOS
563+
end
564+
565+
add_error signing_failure_message
566+
560567
true
561568
end
562569

0 commit comments

Comments
 (0)