From 020a30caa76d25629306ff6de1b39aedf0463d46 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 7 Apr 2025 16:55:20 +0100 Subject: [PATCH] utils/ruby: set HOMEBREW_BOOTSNAP_GEM_PATH after Ruby install. This should ensure it's set to the correct path. --- Library/Homebrew/utils/ruby.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/utils/ruby.sh b/Library/Homebrew/utils/ruby.sh index 4919918961..023fc50510 100644 --- a/Library/Homebrew/utils/ruby.sh +++ b/Library/Homebrew/utils/ruby.sh @@ -127,15 +127,15 @@ If there's no Homebrew Portable Ruby available for your processor: if [[ -x "${vendor_ruby_path}" ]] then HOMEBREW_RUBY_PATH="${vendor_ruby_path}" - HOMEBREW_BOOTSNAP_GEM_PATH="$( - shopt -s nullglob - echo "${vendor_ruby_root}"/lib/ruby/gems/*/gems/bootsnap-*/lib/bootsnap 2>/dev/null - )" TERMINFO_DIRS="${vendor_ruby_terminfo}" if [[ "${vendor_ruby_current_version}" != "${HOMEBREW_PORTABLE_RUBY_VERSION}" ]] then brew vendor-install ruby || odie "${upgrade_fail}" fi + HOMEBREW_BOOTSNAP_GEM_PATH="$( + shopt -s nullglob + echo "${vendor_ruby_root}"/lib/ruby/gems/*/gems/bootsnap-*/lib/bootsnap 2>/dev/null + )" else if system_ruby_supported then