global: more require ordering fixes.
Fixes https://github.com/Homebrew/brew/pull/17730#issuecomment-2227430748
This commit is contained in:
parent
87be0a47d7
commit
983310c6c9
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user