Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle command search in all rubies installations in 2 environments #35

Closed
gzfrancisco opened this issue Jul 26, 2013 · 2 comments
Closed

Comments

@gzfrancisco
Copy link

Bundle command search in all rubies installations when use one ruby in global and other in local.

Steps

  1. Install rbenv-bundler
  2. Install 2 rubies with rbenv (2.0.0pxxx and jruby-1.7.2)
  3. Set global one of them (2.0.0pxxx)
  4. Move to your protect folder
  5. Set local the other one (jruby-1.7.2)
  6. At this steps the bug is installed, you can reproduce if you run
  7. rbenv rehash
    • In terminal prints twice the result
  8. bundle install
    • The bundler install dependencies for jruby and then search the dependence in 2.0.0pxxx and shows crazy messages.

I uninstall the rbenv-bundler for now.

@carsomyr
Copy link
Owner

carsomyr commented Aug 1, 2013

@gzfrancisco I followed your steps, but I couldn't reproduce the problem. The output of rbenv which rails from the project directory is /Users/royliu/.rbenv/versions/jruby-1.7.2/bin/rails.

My best guess for why you're seeing what your seeing is the existence of Gemfile.lock. You see, the JRuby environment is fundamentally different from MRI, which means you'll have to rejigger your Gemfile and regenerate Gemfile.lock with bundle update. Let me know if this helps.

Also, please update the rbenv-bundler plugin to master.

@carsomyr carsomyr closed this as completed Aug 1, 2013
@carsomyr
Copy link
Owner

@gzfrancisco Could you update to master and tell me if the problem persists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants