New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global vs block gem server source priority doesn't work as expected #3982
Comments
Can confirm this issue exists. bundler doc says:
which is the expected behavior as per the issue but not observed. |
#4609 should fix this and make bundler behave as documented. Note that the solution slightly differs from what I originally proposed in the sense that if a scoped source includes any version of As I originally proposed it, the fallback would also happen if the scoped source includes I think this solution matches the documentation exactly, and it's what users intuitively expect, so seems fine to me. |
In a situation like the following:
Bundler should try to resolve using the private source for my-private-gem and all of its indirect dependencies. Only if a valid resolution is not found, it should also consider
rubygems.org
for those dependencies.Insted, Bundle will still install
my-another-private-gem
from rubygems.org if the gem exists there. We should probably search first in the same source asmy-private-gem
before falling back.Originally posted by @rafaelfranca in #3948 (comment)
The text was updated successfully, but these errors were encountered: