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
gem update
fetches gems that are already installed
#6429
Comments
It is also ironical, that the output claims |
Thanks for reporting. I have no idea, feel free to investigate! |
First issue, I don't think that the |
Secondly, I am looking at the
But there is the whole tree. Even if the tree should be there, then all the entries have
Why would the API be queried for JSON, when the JSON is installed? Contrary to upstream Ruby, the JSON is not default gem in Fedora, but why it should matter? Default or not, it is installed and the .spec file is around. |
I think this was introduced by #2901 and specifically 78c6b18. The issue is that the call to
And after:
and I don't think this is correct at all. I am not sure about the intent of #2886, but I am quite sure it should not result in installing additional packages. |
Please note that I hit this issue due to JSON dependency and this case is specific to Fedora. But if there was some package depending on any bundled gem (e.g. RDoc or Minitest), such package would be installed for the second time. Also, we should not forget that GEM_PATH allows to specify multiple locations for gems and if these are considered during runtime, they should be considered also during updates. |
Just thinking further, what I said above might be considered controversial. But what should be IMHO non-controversial is that |
I have following gems available on my system:
Now I want to update the
invoice_printer
:Despite having the matrix, ttfunk, pdf-core, prawn and prawn-table already installed and despite additional
--conservative --minimal-deps
options, RubyGems are fetching them again. And I wonder why?Please note that the gems in question are installed via RPM, so they live in the system gem location. OTOH the
invoice_printer
was installed viagem install
and lives in my home directory. I can imagine that this mixture might be problematic, while I am quite sure it used to work. What has changed?I am testing this scenario on my Fedora Rawhide. Initially, I have hit this issue with:
while later tried with
The text was updated successfully, but these errors were encountered: