From 4b7eec61044716951754faeaa5ea0e4baed12250 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 13 Sep 2023 14:12:17 +0100 Subject: [PATCH] standalone/load_path: add Bundler to LOAD_PATH --- Library/Homebrew/standalone/load_path.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/standalone/load_path.rb b/Library/Homebrew/standalone/load_path.rb index 7dbe4936f1..f567fc734a 100644 --- a/Library/Homebrew/standalone/load_path.rb +++ b/Library/Homebrew/standalone/load_path.rb @@ -14,4 +14,6 @@ Homebrew.setup_gem_environment!(setup_path: false) $LOAD_PATH.push HOMEBREW_LIBRARY_PATH.to_s unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s) require_relative "../vendor/bundle/bundler/setup" +$LOAD_PATH.unshift "#{HOMEBREW_LIBRARY_PATH}/vendor/bundle/#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/" \ + "bundler-#{Homebrew::HOMEBREW_BUNDLER_VERSION}/lib" $LOAD_PATH.uniq!