standalone/init: skip initial gem install in child processes
This commit is contained in:
parent
ce63b7c7f0
commit
c45572ecee
@ -29,7 +29,10 @@ require_relative "../utils/gems"
|
|||||||
Homebrew.setup_gem_environment!(setup_path: false)
|
Homebrew.setup_gem_environment!(setup_path: false)
|
||||||
|
|
||||||
# Install gems for Rubies we don't vendor for.
|
# Install gems for Rubies we don't vendor for.
|
||||||
Homebrew.install_bundler_gems! if unsupported_ruby
|
if unsupported_ruby && !ENV["HOMEBREW_SKIP_INITIAL_GEM_INSTALL"]
|
||||||
|
Homebrew.install_bundler_gems!
|
||||||
|
ENV["HOMEBREW_SKIP_INITIAL_GEM_INSTALL"] = "1"
|
||||||
|
end
|
||||||
|
|
||||||
$LOAD_PATH.push HOMEBREW_LIBRARY_PATH.to_s unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s)
|
$LOAD_PATH.push HOMEBREW_LIBRARY_PATH.to_s unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s)
|
||||||
require_relative "../vendor/bundle/bundler/setup"
|
require_relative "../vendor/bundle/bundler/setup"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user