-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Bundler updates gem index, even with a locked Gemfile #169
Comments
Please provide more information:
Thanks. |
I'm sorry, but you haven't provided enough information for me to reproduce your issue. If you'd like me to investigate, I need to be able to reproduce your problem. Locking works perfectly for me: https://gist.github.com/a782956fcf56a536491a |
Ok, this is Bundler 0.9.10 using rg 1.3.6 under RubyEE 2009.10. Gemfile available here: Similar configuration works on my dev machine flawlessly, the only difference is RubyEE 2010.01 (still haven't upgraded the production server) |
Are you sure that the Gemfile.lock file is present on the server before it runs |
Ok, it's somehow related to Capistrano.
I run Then if I log in to the server manually and issue Interactive shell and capistrano shell apparently differ, so it may cause the trouble somehow. I'll provide more information (capistrano ENV, etc.) on request. |
Your cap1.log clearly shows that all the gems are not already installed on the server. A bunch of the gems that were installed had to be downloaded from gemcutter. If you want to avoid that, you should run |
cap2.log is the point actually. Nothing needs to be installed (already done, as cap1.log states), but source index is updated again :( |
You're right... sorry, I don't know what could be causing that. Without a way to reproduce it myself, I don't have any way to troubleshoot it. Sorry. :( |
The cause might be in When I ssh the server and run |
Ok, I am able to reproduce it locally, without capistrano.
|
Thanks, that's very helpful. Hopefully we can address this soon. |
Fixed by 02fd9b9. |
I had the same problem and found it worked when the = was omitted, ie:
|
Ok, I am able to reproduce it locally, without capistrano.
Take Gemfile and Gemfile.lock from http://gist.github.com/323016 and put them into an empty directory.
Remove ~/.bundle, remove all installed gems (I just created a new gemset with rvm for that purpose).
Run bundle install --without=development, the rack gem will be installed.
Run bundle install --without=development again. Index will get updated again (whereas it should NOT).
Run bundle install. Index gets updated again (it should NOT).
Now running bundle install or bundle install --without=development will work fast, as it should, no index updating.
(from comment below)
The text was updated successfully, but these errors were encountered: