making core tap install an in-process call

This helps fixes problems with fresh install on ARM Linux.
When brew is relaunched with filtered PATH, it is not able to
find user installed Ruby.
This commit is contained in:
Asutosh Palai 2023-02-03 00:32:18 +00:00
parent 3af2f0ecec
commit a3765d0a80
2 changed files with 2 additions and 2 deletions

View File

@ -800,7 +800,7 @@ class CoreTap < Tap
# Tests override homebrew-core locations and we don't want to auto-tap in them. # Tests override homebrew-core locations and we don't want to auto-tap in them.
return if ENV["HOMEBREW_TESTS"] return if ENV["HOMEBREW_TESTS"]
safe_system HOMEBREW_BREW_FILE, "tap", instance.name instance.install
end end
def remote def remote

View File

@ -87,7 +87,7 @@ module Tty
CODES.each do |name, code| CODES.each do |name, code|
define_method(name) do define_method(name) do
@escape_sequence ||= [] @escape_sequence ||= []
@escape_sequence << code @escape_sequence << code if @escape_sequence
self self
end end
end end