-
-
Notifications
You must be signed in to change notification settings - Fork 933
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
Solution to rubygems api deprecation for direct api use #3698
Comments
The deprecation article doesn't discuss it for some reason, but newer versions of I'm not really sure why the RubyGems.org maintainers felt that deprecating the fallback API would mean people would need to take no action, but it isn't true; you do have to make sure that you're using a sufficiently modern version of the clients, which not everyone is. |
@saraid Usually there is no need to upgrade Ruby. Just install newer bundler using |
@simi It is possible that people are running unsupported Rubies. When the OP is discussing Bundler 1.14, that does not suggest they are running Ruby 2.7. |
Yup, it seems some old Ruby is involved. @neilharris123 which Ruby and RubyGems are related to your report? You can find out by |
We're using the following:
It's not possible for us to upgrade to the newer versions suggested, as the machines where we're encountering this problem run Debian8, so this puts constraints on the version of ruby we can install. In the medium term we plan to upgrade these machines, but It's not something that we can do in the short term. They are responsible for configuration management of a large part of our infra, and upgrading the operating system and other services would require a fairly substantial re-working of our current configuration management manifests. |
@neilharris123 all you need to do now is to upgrade to bundler 1.12 or newer. Latest bundler 1.12+ should support your Ruby version - https://rubygems.org/gems/bundler/versions/1.12.6. Can you try that by doing For your Ruby, I recommend to upgrade as soon as possible since you're using version not supported for 6 years now. But I understand it is not easy sometimes. |
We are also facing a serious breakage due to the abrupt RubyGems.org v1 API removal. What's serious? The entirety of JRuby's build process for installing standard library gems will break until we can update the Maven plugins responsible for it to use the v2 API. These same plugins are used by thousands of JRuby users and dozens of downstream projects to pull gems and repackage them for JVM usage. We are unlikely to have the manpower before May 10 to update our plugin to the newer API. Even if we did manage to make the update, those downstream projects will need time to upgrade the plugin. So this is me pleading for more time to make this transition. 🥺🙏 |
See jruby/jruby-maven-plugins#124 for the issue that finally brought this deprecation to our attention. I want to make clear... we missed the memo on this, and will play catch-up to make the transition. But that will be very difficult if all JRuby builds start to fail when the API goes away on the 10th. |
I think it's also worth pointing out that this removal date is just days before RubyKaigi, so anyone like me preparing talks for that conference will be unable to build our own projects after next Wednesday. Please, extend this deadline by at least a month, if not until the end of the summer (6 month rampdown of the API). |
A follow-up here... We worked out with the rubygems.org maintainers to whitelist JRuby's uses of the dependencies API until August (8th, I believe) so that we'd have time to adjust our build tools to use the new API. That is in process at jruby/mavengem#9 now. |
The modifications to mavengem in jruby/mavengem#9 are largely complete, and I've confirmed that JRuby's build works properly with mavengem even when altering the user-agent to something other than That does not really affect this issue but it does mean JRuby will not be affected when the API finally goes dark for Java users next week. |
can anyone explain what is going on with rubygems? Our performance is really bad because the latest rubygems and bundler keep falling back to the legacy api. I thought the latest versions were supposed to use V2? We are following this chain of bug reports:
We have no guidance or support for this issue. Please, can someone help us? Are these not the latest gems?
|
@coldnebo RFC is available at https://github.com/rubygems/rfcs/blob/master/text/0009-deprecate-dependency-api.md. There are some known problems with JFrog, feel free to follow rubygems/rubygems#6632 for more details. Are you able to try bundler from https://github.com/rubygems/rubygems/compare/opaque-etag-http-digest to see if that fixes your problems? If I remember well, the only missing parts are specs for that branch to get merged. |
We are experiencing issues relating to the rubygems api deprecation which has caught us by surprise.
I've read the blog here, but I've not seen a solution for users who are currently using the api directly. Only solutions for users making use of products such as artifactory.
We are building an image which installs ruby, then bundler, then uses bundler to install various other gems.
The step we are having issues is when we attempt to install bundler like so:
gem install bundler -v '~>1.14'
At which point we receive:
I have seen the suggestion in the article about to try switching to 'Gem Version API', but there are no links to this in the article, and haven't had any luck googling this. Would it be possible to provide a more detailed explanation, either here, or in the article or both?
The text was updated successfully, but these errors were encountered: