Merge pull request #16228 from Bo98/setup_path-ruby3-fix

standalone/init: don't pollute environment on Ruby 3 startup
This commit is contained in:
Bo Anderson 2023-11-17 11:41:49 +00:00 committed by GitHub
commit efc71abf97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ Homebrew.setup_gem_environment!(setup_path: false)
# Install gems for Rubies we don't vendor for.
if unsupported_ruby && !ENV["HOMEBREW_SKIP_INITIAL_GEM_INSTALL"]
Homebrew.install_bundler_gems!
Homebrew.install_bundler_gems!(setup_path: false)
ENV["HOMEBREW_SKIP_INITIAL_GEM_INSTALL"] = "1"
end