Skip to content
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

Ruby v3.5 compatibility: gem dependencies #2551

Open
fallwith opened this issue Apr 11, 2024 · 4 comments
Open

Ruby v3.5 compatibility: gem dependencies #2551

fallwith opened this issue Apr 11, 2024 · 4 comments

Comments

@fallwith
Copy link
Contributor

fallwith commented Apr 11, 2024

This is primarily a placeholder issue for Ruby v3.5 compatibility auditing with regard to gems that are included by default with Ruby v3.4 but need to be brought in as dependencies with Ruby v3.5. Ruby v3.5 is expected to be released on 2025-12-25 with the earliest preview release version of v3.5 not expected to drop until at least May 2025.

We already know that OpenStruct (ostruct) will be impacted and need to be included as a dev dependency for Ruby v3.5. Once we see the first Ruby v3.5 preview build released, we should conduct an audit to see if any other gems used by the agent are impacted.


Update 2024-12-04

The following gems are now on the list to be removed from the default list in Ruby v3.5:
"ostruct" => "3.5.0",
"pstore" => "3.5.0",
"rdoc" => "3.5.0",
"win32ole" => "3.5.0",
"fiddle" => "3.5.0",
"logger" => "3.5.0",
"benchmark" => "3.5.0",
"irb" => "3.5.0",
"reline" => "3.5.0",
https://github.com/ruby/ruby/blob/master/lib/bundled_gems.rb#L26-L35

@workato-integration
Copy link

@fukayatsu
Copy link
Contributor

Ruby 3.3.5 has been released on 3 Sep 2024, and now latest newrelic_rpm (9.13.0) gem causes warning about default gems (logger, ostruct)

# foo.rb
puts "RUBY_VERSION: #{RUBY_VERSION}"

require "bundler/inline"
gemfile(true) do
  source "https://rubygems.org"
  gem "newrelic_rpm"
end
$ ruby foo.rb

RUBY_VERSION: 3.3.5
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Fetching newrelic_rpm 9.13.0
Installing newrelic_rpm 9.13.0
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:75: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add logger to your Gemfile or gemspec to silence this warning.
/usr/local/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.

@fallwith
Copy link
Contributor Author

Thank you for letting us know, @fukayatsu! Originally we thought that these Ruby v3.5 warnings would not start to appear until the first preview release of Ruby v3.5 in 2025. Now that warnings are appearing in Ruby v3.3 already in 2024, we will try to discuss a solution sooner than originally planned.

@fallwith fallwith added the oct-dec qtr Possible FY Q3 candidate label Sep 19, 2024
@fukayatsu
Copy link
Contributor

fukayatsu commented Sep 20, 2024

@fallwith Thanks for the quick reply. I also found out that the warnings were accidentally introduced in Ruby v3.3.5 and will be removed in v3.3.6 (to be released on 5 November).

@kaylareopelle kaylareopelle removed the oct-dec qtr Possible FY Q3 candidate label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants