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

bundle config gemfile is not working. #1315

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

bundle config gemfile is not working. #1315

wizztjh opened this issue Jul 21, 2011 · 4 comments

Comments

@wizztjh
Copy link

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
Copy link
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.

@praecipula
Copy link

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
Copy link
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 pushed a commit to urbanautomaton/bundler that referenced this issue Mar 4, 2014
It is not possible to set BUNDLE_GEMFILE using bundle-config, so don't
tell users that it is. [rubygems#1315]
urbanautomaton pushed a commit to urbanautomaton/bundler that referenced this issue Mar 4, 2014
It is not possible to set BUNDLE_GEMFILE using bundle-config, so don't
tell users that it is. [rubygems#1315]
urbanautomaton pushed a commit to urbanautomaton/bundler that referenced this issue Mar 4, 2014
It is not possible to set BUNDLE_GEMFILE using bundle-config, so don't
tell users that it is. [rubygems#1315]
@dholdren
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants