Merge pull request #17546 from Homebrew/ww/gh-bootstrap-fix

This commit is contained in:
Mike McQuaid 2024-06-24 09:11:09 +01:00 committed by GitHub
commit 43eaeca50f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1256,7 +1256,9 @@ on_request: installed_on_request?, options:)
sig { void } sig { void }
def pour def pour
if Homebrew::EnvConfig.verify_attestations? && formula.tap&.core_tap? # We skip `gh` to avoid a bootstrapping cycle, in the off-chance a user attempts
# to explicitly `brew install gh` without already having a version for bootstrapping.
if Homebrew::EnvConfig.verify_attestations? && formula.tap&.core_tap? && formula.name != "gh"
ohai "Verifying attestation for #{formula.name}" ohai "Verifying attestation for #{formula.name}"
begin begin
Homebrew::Attestation.check_core_attestation formula.bottle Homebrew::Attestation.check_core_attestation formula.bottle