Closed ajsharp closed 13 years ago
All commands in your build script are always executed in %build_dir%
. Bundle install is picking up the BUNDLE_GEMFILE
environment variable from Bigtuna (set by Rails... sigh).
@wuputah: Cool, thanks for the info on %build_dir%. I dug into the source a bit today and found the runner, and saw where it cd
's into the %build_dir%. I also noticed that everything runs within a Bundler.with_clean_env
block -- does this not solve the BUNDLE_GEMFILE
issue?
If not, this seems like an issue that either a.) should be documented clearly on the docs site or b.) we should try to work around. Are you open to a patch on this issue?
This has been a design issue between us and the Bundler team. After speaking with them, I've contributed a pull request to Bundler to make with_clean_env
cleaner, hopefully will be merged soon, but we may still implement some extra cleansing in Bigtuna since Bundler 1.1 may not be out for some time and people may be using Bundler 1.0.x for even longer. I think it may be wise for Bigtuna to also clean RAILS_ENV
since that catches people as well.
In the output below, despite the fact that I'm
cd
-ing into the%build_dir%
, bundle install is bundling bigtuna's Gemfile, not the app located in the build dir. What is going on here?Build steps:
Output: