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

Appraisal with vendorized gems #30

Closed
sethvargo opened this issue Jun 12, 2012 · 3 comments
Closed

Appraisal with vendorized gems #30

sethvargo opened this issue Jun 12, 2012 · 3 comments

Comments

@sethvargo
Copy link

Related to #13, please allow support for vendorized gems. When using a Continuous Integration server (like Hudson or Jenkins), gems cannot be installed globally for a variety of reasons:

  1. The user doesn't have sudo permissions
  2. Builds are created dynamically
  3. We want to mimic a "true" production scenario (where gems are vendorized)

Note that #13 occurs when you install gems anywhere other than the default path. i.e. specifying --path in the bundle option completely breaks appraisal...

The issue happens because you're shelling out to the system another bundle command here.

@jferris
Copy link
Member

jferris commented Jun 12, 2012

We'd be happy to take a pull request that adds this functionality.

@jferris jferris closed this as completed Jun 12, 2012
@sethvargo
Copy link
Author

I'm not sure where to begin though... keeping the same env variables results in an error saying the bundler specs have already been loaded. If you don't keep the env variables, it looks for the gems globally.

@jferris
Copy link
Member

jferris commented Jun 12, 2012

I'm not sure what the fix is either. We have to run a new bundle command because we're switching gemfiles. We may just need to pass something else to that bundle command to make sure it uses .bundle/config or something like that.

phillbaker added a commit to phillbaker/appraisal that referenced this issue Sep 28, 2013
Appraisal seems to require Bundler to install the requirements of the Gemfile in the global namespace, see thoughtbot#13 and thoughtbot#30.
sikachu pushed a commit that referenced this issue Oct 29, 2013
Appraisal seems to require Bundler to install the requirements of the Gemfile in the global namespace, see #13 and #30.
sikachu pushed a commit that referenced this issue Mar 10, 2015
This fixes an issue where user would get "Could not find bundler" error
when tries to use Appraisal in project that vendorize gems.

The root cause was that Bundler will not bundle itself when you run
`bundle install` with `--path` option. As Appraisal resets `GEM_HOME`
to avoid dependency conflict, it also made RubyGems unable to locate
code for Bundler as well.

Fix #13, #30 and #87.
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