mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Disable parallel installation by default on Windows
Since we enabled parallel installation by default, we've fixed all the
issues related to it that have come up, except for a Windows issue that
we haven't yet figured out. This issue is hit by our specs on a daily
basis and there's no reason to believe that it won't be hit by end users
in a similar way.
So, both to stop the testing flakyness and to prevent regressions in the
default behavior on Windows, I'd rather leave the default as it was
before on Windows for now.
5d8ab57131
This commit is contained in:
parent
7aa6fec45f
commit
c5ee078c5f
Notes:
git
2020-06-18 19:14:58 +09:00
1 changed files with 8 additions and 1 deletions
|
@ -202,7 +202,14 @@ module Bundler
|
||||||
return jobs
|
return jobs
|
||||||
end
|
end
|
||||||
|
|
||||||
Bundler.settings[:jobs] || processor_count
|
if jobs = Bundler.settings[:jobs]
|
||||||
|
return jobs
|
||||||
|
end
|
||||||
|
|
||||||
|
# Parallelization has some issues on Windows, so it's not yet the default
|
||||||
|
return 1 if Gem.win_platform?
|
||||||
|
|
||||||
|
processor_count
|
||||||
end
|
end
|
||||||
|
|
||||||
def processor_count
|
def processor_count
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue