Skip to content

Commit

Permalink
Merge pull request #17706 from Homebrew/ww/fix-local-bottles
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Jul 13, 2024
2 parents 0f9ca1d + 06daff1 commit f466fca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,12 @@ def downloader
def pour
# 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::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}"
begin
Homebrew::Attestation.check_core_attestation formula.bottle
Expand Down

0 comments on commit f466fca

Please sign in to comment.