fxn / zeitwerk

Efficient and thread-safe code loader for Ruby
MIT License
1.99k stars 118 forks source link

drb was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0 #288

Closed diei closed 8 months ago

diei commented 8 months ago

After update to Ruby 3.3.0 I get the following message:

~/.rvm/gems/ruby-3.3.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34: warning: drb was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add drb to your Gemfile or gemspec. Also contact author of zeitwerk-2.6.13 to add drb into its gemspec.

fxn commented 8 months ago

Hey, Zeitwerk does not use drb. Problem is this warning assumes the caller of Kernel#require is the one that wants to use the gem. But this might not be the case.

Does your project use drb?

diei commented 8 months ago

Thanks for the hint. It seems that rspec and activesupport use drb. Maybe the message disappears when these gems are updated.

fxn commented 8 months ago

For the time being, you can add drb to your Gemfile.