Merge pull request #17737 from Homebrew/more_require_fixes

This commit is contained in:
Mike McQuaid 2024-07-14 14:31:31 -04:00 committed by GitHub
commit c751dce464
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,14 @@ module Homebrew
end
end
require "PATH"
ENV["HOMEBREW_PATH"] ||= ENV.fetch("PATH")
ORIGINAL_PATHS = PATH.new(ENV.fetch("HOMEBREW_PATH")).filter_map do |p|
Pathname.new(p).expand_path
rescue
nil
end.freeze
require "extend/blank"
require "extend/kernel"
require "os"
@ -125,13 +133,5 @@ require "extend/pathname"
require "exceptions"
require "PATH"
ENV["HOMEBREW_PATH"] ||= ENV.fetch("PATH")
ORIGINAL_PATHS = PATH.new(ENV.fetch("HOMEBREW_PATH")).filter_map do |p|
Pathname.new(p).expand_path
rescue
nil
end.freeze
require "tap_constants"
require "official_taps"