Remove ensure_gh_installed!
Co-authored-by: William Woodruff <william@yossarian.net>
This commit is contained in:
parent
802eb54e87
commit
51ec743d6f
@ -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
|
||||
|
||||
@ -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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user