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 install won't work first time #4

Open
hector opened this issue Oct 6, 2015 · 3 comments
Open

bundle install won't work first time #4

hector opened this issue Oct 6, 2015 · 3 comments

Comments

@hector
Copy link

hector commented Oct 6, 2015

Hi,

When you try to bundle install this plugin should not add bundle exec.
So, if you do:

git clone myproject
cd myproject
bundle install  # it detects Gemfile and really does: bundle exec bundle install (which fails)

This error only happens for new projects that haven't been bundle installed before on the machine, because afterwards bundle exec is capable of finding the gems in Gemfile.lock. But anyways, bundle exec bundle install should never happen.

PD: don't bother to ask if I didn't make myself clear with explanations

@zzantares
Copy link

any comments on this? same problem here

@maljub01
Copy link
Owner

maljub01 commented Nov 8, 2015

Thank you for the bug report.

rbenv-bundle-exec should already be skipping all bundle commands (See line 31).

Perhaps you have other rbenv/bundler integration plugins installed? Having several rbenv/bundler plugins on the same system might be causing some subtle issues.

In order to have more debugging data, can you please provide the output for:

RBENV_DEBUG=1 bundle install

@hector
Copy link
Author

hector commented Nov 9, 2015

Here you have the output of the command working (with NO_BUNDLE_EXEC=1) and failing (with RBENV_DEBUG=1):
https://gist.github.com/hector/e9184820353d7f931f21

RBENV plugins I have installed:

  • rbenv-bundle-exec
  • rbenv-communal-gems
  • rbenv-gem-rehash
  • rbenv-use
  • rbenv-vars
  • rbenv-whatis
  • ruby-build

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

3 participants