Support for additional sources from the environment #2140

brettporter opened this Issue Nov 1, 2012 · 1 comment


None yet

2 participants


Much like ~/.gemrc, it is useful to be able to specify additional sources to be used in a particular environment. This would be helpful to solve the issue of wanting to keep private sources out of a Gemfile.

One solution is discussed here:

However, this promotes the private repository to Gemfile.lock. I originally approached this by trying to declare some repositories in Gemfile as private, but this overly complicates the comparison of the Gemfile and Gemfile.lock for differences.

Instead, I propose promoting a similar option from the environment as a way of adding repositories that are not declared in either file:

bundle config env_sources source1,source2,...

These should be used to resolve gems, but not added to the lock file, on the assumption that everyone building the project must add the sources with their own credentials.

There may be a better name for the argument 😃


Discussion moved to #2141.

@indirect indirect closed this Nov 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment