From c4fa82d688d6c4645bdd29b01ce2bc6dd79d405f Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Wed, 21 Dec 2016 18:40:46 +0100 Subject: [ParallelInstaller] Pre-require gem_remote_fetcher on 1.8.7 --- lib/bundler/installer/parallel_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bundler/installer/parallel_installer.rb b/lib/bundler/installer/parallel_installer.rb index 12f11bb5f0..c973233d99 100644 --- a/lib/bundler/installer/parallel_installer.rb +++ b/lib/bundler/installer/parallel_installer.rb @@ -88,6 +88,10 @@ module Bundler end def call + # Since `autoload` has the potential for threading issues on 1.8.7 + # TODO: remove in bundler 2.0 + require "bundler/gem_remote_fetcher" if RUBY_VERSION < "1.9" + enqueue_specs process_specs until @specs.all?(&:installed?) || @specs.any?(&:failed?) handle_error if @specs.any?(&:failed?) -- cgit v1.2.1