Merge pull request #17706 from Homebrew/ww/fix-local-bottles

This commit is contained in:
Mike McQuaid 2024-07-13 16:15:53 -04:00 committed by GitHub
commit f466fca000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1258,7 +1258,12 @@ on_request: installed_on_request?, options:)
def pour def pour
# We skip `gh` to avoid a bootstrapping cycle, in the off-chance a user attempts # 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. # to explicitly `brew install gh` without already having a version for bootstrapping.
if Homebrew::Attestation.enabled? && formula.tap&.core_tap? && formula.name != "gh" # We also skip bottle installs from local bottle paths, as these are done in CI
# as part of the build lifecycle before attestations are produced.
if Homebrew::Attestation.enabled? &&
formula.tap&.core_tap? &&
formula.name != "gh" &&
formula.local_bottle_path.blank?
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