formula_installer: skip attestations on local_bottle_path
Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
parent
0f9ca1d627
commit
e56fde6584
@ -1258,7 +1258,12 @@ on_request: installed_on_request?, options:)
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user