Remove ensure_gh_installed!

Co-authored-by: William Woodruff <william@yossarian.net>
This commit is contained in:
Nanda H Krishna 2024-07-15 12:28:07 -04:00
parent 802eb54e87
commit 51ec743d6f
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA
2 changed files with 0 additions and 18 deletions

View File

@ -57,16 +57,6 @@ module Homebrew
Homebrew::EnvConfig.developer? || Homebrew::EnvConfig.devcmdrun?
end
# Ensures the availability of a suitable `gh` executable for attestation verification.
#
# @api private
sig { returns(Pathname) }
def self.ensure_gh_installed!
return @gh_executable if @gh_executable.present?
gh_executable
end
# Returns a path to a suitable `gh` executable for attestation verification.
#
# @api private

View File

@ -263,14 +263,6 @@ module Homebrew
end
end
if Homebrew::Attestation.enabled?
if formulae.include?(Formula["gh"])
formulae.unshift(T.must(formulae.delete(Formula["gh"])))
else
Homebrew::Attestation.ensure_gh_installed!
end
end
# if the user's flags will prevent bottle only-installations when no
# developer tools are available, we need to stop them early on
build_flags = []