Skip to content

Stop setting BUNDLE_PATH #18

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

Merged
merged 1 commit into from
May 9, 2017

Conversation

jarednorman
Copy link
Contributor

I didn't dig into why BUNDLE_PATH was being overridden, but I'm fairly confident
it shouldn't be. It appears to override the bundler configuration, breaking
things.

It's not uncommon for users to set BUNDLE_PATH in their $HOME/.bundle/config
to something like "vendor/bundle" in order to get their project gems installed
into a directory within the project. This is even encouraged by the bundler
docs.

Setting BUNDLE_PATH to the gem home in the env appears to break this. Bundler
commands run from within emacs are unable to find any of the gems that are
installed locally to my projects, I assume because they are searching in the
GEM_HOME instead of the project local path.

I didn't dig into why BUNDLE_PATH was being overridden, but I'm fairly confident
it shouldn't be. It appears to override the bundler configuration, breaking
things.

It's not uncommon for users to set `BUNDLE_PATH` in their `$HOME/.bundle/config`
to something like "vendor/bundle" in order to get their project gems installed
into a directory within the project. This is even encouraged by the bundler
docs.

Setting BUNDLE_PATH to the gem home in the env appears to break this. Bundler
commands run from within emacs are unable to find any of the gems that are
installed locally to my projects, I assume because they are searching in the
GEM_HOME instead of the project local path.
@plexus plexus merged commit 3eddd2f into plexus:master May 9, 2017
@plexus
Copy link
Owner

plexus commented May 9, 2017

Thanks. The idea for chruby.el is that it copies the behavior of chruby (https://github.com/postmodern/chruby), but apparently chruby also doesn't set BUNDLE_PATH, so not sure where that came from.

Thanks for the patch!

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

Successfully merging this pull request may close these issues.

2 participants