Bundle install ignoring :git?

This is possibly OT but I’m confident Rails folks would know the answer.

I have a Rails 3.1 site deployed to Apache+Passenger which uses
RVM+Bundler.

Bundler+RVM seems to work great except with gems that I pull from git
via the :git => syntax in Gemfile. Logging into the production server
and typing “bundle install” does not fix the error, but “bundle install
specific-gem.git” does fix the issue.

Additionally, bundle pack doesn’t place these from-git gems in
vendor/cache.

Anybody have any idea what’s going on here?

  • Christopher Thielen

On Tue, Sep 13, 2011 at 2:07 AM, Christopher Thielen
[email protected]wrote:

Additionally, bundle pack doesn’t place these from-git gems in
vendor/cache.

Anybody have any idea what’s going on here?

Check the difference between

$ gem list
$ bundle exec gem list

That may give a hint (I had a similar problem where a gem sourced from
git
did not
show up in ‘gem list’, only in ‘bundle exec gem list’; I was running rvm
1.8.0 or 1.8.3
and bundler 1.0.14)

HTH,

Peter


Peter V.
http://twitter.com/peter_v