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
Bundler 2.2.10 breaks with multi-source error gems that point to themselves using path #4382
Comments
It's probably a duplicate of #4380? |
Possibly. I know it is caused by bundler not knowing from which source the indirect dependency should come. This is the same problem that made This is the diff I had to do in a Rails app to be able to make the app work with that option enabled: While I see how that feature increase security, it decrease significantly Bundler usability. Now to upgrade Rails in those apps we need to unlock every single subdependencies of Rails. |
Well, the feature was not designed like that, this is a bug :(. Can you try whether #4381 fixes the issue? |
I was able to reproduce this and confirmed that #4381 doesn't fix it. I'll have a look now. |
In this case, I believe when you're developing code locally by using the |
I also see this behavior with 2.2.10 when source from a remote private rubygems repo. 2.2.9 does not have this problem. |
Pushing a fix in a few minutes 👍. By the way, this also shows a different issue. Even if the sources could be considered ambiguous, I don't think there's any ambiguity in this particular case, because rubygems.org doesn't have |
Our CI revealed that in the case where there's a real ambiguity, it's not really guaranteed that the I believe the current approach should work fine for most Rails cases. It might still give you trouble when run from release branches, depending on the whether the local version ever matches the released version, but as I said I'll try to address that issue too in the future. |
Thank you for working so quickly on this. |
No problem, I'm responsible for the mess caused, so I want to fix it as soon as possible. |
For now I reverted the change that caused this issue and released that as 2.2.11. I'll try to reintroduce the secure mode I wanted to introduce without breaking your use case in future releases. |
Using this Gemfile:
https://github.com/rails/rails/blob/907cb05dce964e4593e02f52c45924f4401a66c0/Gemfile
We get this error:
The text was updated successfully, but these errors were encountered: