When using --standalone, place the setup.rb file relative to the gem install path, rather than the working directory #1645

wants to merge 1 commit into


None yet
3 participants

For issue #1643 I am running bundler from the root of my project. There are several subdirectories with their own Gemfiles. For each subdirectory, I run:

bundle install --gemfile=path/to/Gemfile --standalone

This installs the gems into path/to/vendor/bundle/ruby.

However the setup.rb file is created at vendor/bundle/bundler/setup.rb, in the project root. I would like this file to be located at path/to/vendor/bundle/bundler/setup.rb. This patch provides the desired behavior. Thanks!

This pull request fails (merged 18097dc into 42d2c3e).

Hi TravisBot! Um?


indirect commented Aug 4, 2013

So Bundler.settings[:path] is actually the install directory, and not the working directory. If you're not seeing that, please open a new issue with a repro case, and I'll see about getting it fixed. Thanks!

indirect closed this Aug 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment