Chris Bolton
Chris Bolton

Reputation: 2926

bundle update spikes cpu and does nothing

Pretty much what the title says, I run 'bundle update', my CPU spikes, and nothing happens. I've left it for like two hours. Any ideas on what to do?

I use bundler version 1.0.15.

Here is my Gemfile content:

source 'http://rubygems.org'

gem 'whiskey_disk'
gem 'rails'
gem 'rake'
gem 'unicorn'
gem 'juggernaut'
gem 'httparty'
gem 'postmark-rails'
gem 'jquery-rails'
gem 'airbrake'
gem 'newrelic_rpm'
gem 'haml'
gem 'barista'
gem 'decent_exposure'
gem 'carrierwave'
gem 'carrierwave-mongoid', require: 'carrierwave/mongoid'
gem 'rmagick'
gem 'devise'
gem 'gravtastic'
gem 'kaminari'
gem 'bson_ext', require: 'mongo'
gem 'mongoid'
gem 'mongoid-tree', require: 'mongoid/tree'
gem 'mongoid_auto_inc'
gem 'mongoid_search'
gem 'omniauth-facebook'
gem 'omniauth-twitter'
gem 'omniauth-tumblr'
gem 'inherited_resources'
gem 'jammit'
gem 'clockwork'
gem 'stalker'
gem 'ruby-bitly'
gem 'cloudfiles'
gem 'fog'
gem 'embedly'
gem 'zencoder'
gem 'pry'
gem 'therubyracer'
gem 'ruby-mp3info', require: 'mp3info'

Upvotes: 2

Views: 799

Answers (1)

lzap
lzap

Reputation: 17173

Bundler is rarely having hard time to resolve the dependencies, therefore the only workaround now is to provide it some "hints" of specifying versions for some dependencies, so it can calculate the rest quickly.

Specify versions for some gems and calculation should be much faster. Good candidate here is Rails.

More info here: https://github.com/carlhuda/bundler/issues/1450

Upvotes: 1

Related Questions