Skip to content
This repository has been archived by the owner. 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 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

@indirect indirect commented Aug 17, 2011

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

@praecipula praecipula commented Nov 12, 2013

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

@indirect indirect commented Nov 13, 2013

@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

@dholdren dholdren commented Dec 23, 2014

@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants