Bug #2623
closeddrb - circular require
Description
=begin
Some gems(for example rspec) require drb:
require "drb/drb" # It should probably be just "require 'drb'", but it's the same anyway.
/usr/local/lib/ruby/1.9.1/drb/eq.rb:1: warning: loading in progress, circular require considered harmful - /usr/local/lib/ruby/1.9.1/drb/drb.rb
...
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec.rb:6:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec.rb:6:in
require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner.rb:6:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner.rb:6:in
require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner/drb_command_line.rb:1:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/rspec-1.3.0/lib/spec/runner/drb_command_line.rb:1:in
require'
from /usr/local/lib/ruby/1.9.1/drb/drb.rb:57:in <top (required)>' from /usr/local/lib/ruby/1.9.1/drb/drb.rb:57:in
require'
from /usr/local/lib/ruby/1.9.1/drb/eq.rb:1:in <top (required)>' from /usr/local/lib/ruby/1.9.1/drb/eq.rb:1:in
require'
This is due to drb/eq.rb, with this line:
require 'drb/drb'
That seems useless to me. You will never require this file directly, as it just allow to compare DRBObject.
So, shouldn't that line be removed ?
=end
Updated by naruse (Yui NARUSE) almost 15 years ago
- Status changed from Open to Closed
=begin
Don't use "see" when you want to close a ticket.
=end