Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Bundler fails to properly load Rails engines from repository when locked #268

Closed
szimek opened this issue Apr 9, 2010 · 5 comments
Closed

Comments

@szimek
Copy link

szimek commented Apr 9, 2010

If you have a Rails engine i.e. Devise and in your Gemfile you specify its git repository, then it only works properly when gems are unlocked. When you lock your gems, it seems that Rails doesn't load any files in gem's app folder at all.

Here's a sample Rails 2.3.5 app http://github.com/szimek/bundler_engine_test that shows the problem. Just clone it, run "bundle install" and visit the main page. Normally it works fine - redirects to the sign in page, but after locking the gems it complains that there's no SessionsController, which is defined in app/controllers folder in Devise gem.

It works fine with locked gems if you don't specify git repository - i.e. "gem 'devise', '1.0.6'". I haven't tested it yet with :path option.

@jonathan
Copy link

jonathan commented Apr 9, 2010

I have this same problem with inherited resources and the v1.0 branch.

@indirect
Copy link
Member

Tracked it down -- there was a bug in git gems, that were also gem plugins, while the bundle was locked. It's fixed in commit 0f97e4f, and I'll push the fix in 0.9.19 soon. If you need it before then, check out the v0.9 branch and run rake install.

@wilkerlucio
Copy link

having same problem with inherited resources, even without locking...

@indirect
Copy link
Member

@wilkerlucio: sorry, but that doesn't actually help me figure out what's wrong. try the troubleshooting steps at the bottom of the bundler readme.

@wilkerlucio
Copy link

I mean my problem is not related to engines, so I created a new issue for it: http://github.com/carlhuda/bundler/issues#issue/298

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants