bundle config gemfile is not working. #1315

Closed
wizztjh opened this Issue Jul 21, 2011 · 4 comments

Projects

None yet

4 participants

@wizztjh
wizztjh commented Jul 21, 2011

I try to bundle config gemfile Gemfile.sj and bundle config gemfile mypathtoit/Gemfile.sj

but it is not working ...

~/.bundle/config


BUNDLE_GEMFILE: Gemfile.sj

@indirect
Member

Unfortunately, by the time Bundler loads the config file, it is too late. You need to set the Gemfile using BUNDLE_GEMFILE=Gemfile.sj bundle install, or using bundle install --gemfile Gemfile.sj.

@indirect indirect closed this Aug 17, 2011
@praecipula

I see that this issue is closed, but I think that it's worth taking a second look: either Bundler should not deceive users by including the gemfile key in the documentation, which would be fine but suboptimal, or it should read the config file before finding the Gemfile, which I believe is the better solution. Is there a reason that this is essentially "wontfix" in that neither of these options are worth implementing?

@indirect
Member

@praecipula feel free to submit a pull request to correct the documentation. While we would also accept a pull request to honor the config setting, the location of the config file is based on the location of the Gemfile, so that's not possible.

@urbanautomaton urbanautomaton added a commit to urbanautomaton/bundler that referenced this issue Mar 4, 2014
@urbanautomaton urbanautomaton Correct bundle-config manpage
It is not possible to set BUNDLE_GEMFILE using bundle-config, so don't
tell users that it is. [#1315]
91f58b9
@urbanautomaton urbanautomaton added a commit to urbanautomaton/bundler that referenced this issue Mar 4, 2014
@urbanautomaton urbanautomaton Correct bundle-config manpage
It is not possible to set BUNDLE_GEMFILE using bundle-config, so don't
tell users that it is. [#1315]
9b865b5
@urbanautomaton urbanautomaton added a commit to urbanautomaton/bundler that referenced this issue Mar 4, 2014
@urbanautomaton urbanautomaton Correct bundle-config manpage
It is not possible to set BUNDLE_GEMFILE using bundle-config, so don't
tell users that it is. [#1315]
0a81457
@dholdren
Contributor

@wizztjh @praecipula FYI, I have a pull request to add this feature: #3320

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