Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/tests/formulae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ def tap_needed_taps(deps)
retry
end

def install_ca_certificates_if_needed
return if ENV["HOMEBREW_FORCE_BREWED_CA_CERTIFICATES"].blank?

test "brew", "install", "ca-certificates",
env: { "HOMEBREW_DEVELOPER" => nil }
end

def install_curl_if_needed(formula)
%w[Stable HEAD].each do |name|
spec_name = name.downcase.to_sym
Expand Down Expand Up @@ -276,6 +283,7 @@ def formula!(formula_name, args:)
reqs |= formula.requirements.to_a.reject(&:optional?)

tap_needed_taps(deps)
install_ca_certificates_if_needed
install_curl_if_needed(formula)
install_gcc_if_needed(formula, deps)
install_mercurial_if_needed(deps, reqs)
Expand Down