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

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

Closed
wants to merge 1 commit into from

Conversation

sodabrew
Copy link

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!

@travisbot
Copy link

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

@sodabrew
Copy link
Author

Hi TravisBot! Um?

@indirect
Copy link
Member

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 indirect closed this Aug 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants