You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running with this gem under Ruby 2.7.2, there's a large number of (loud) warnings about circular dependency loading
I'm following the documentation from this repo and I have require 'dogapi' in my gem initialization code.
Example
/opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72: warning: /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72: warning: loading in progress, circular require considered harmful - /Users/dougedey/.gem/ruby/2.7.2/gems/dogapi-1.44.0/lib/dogapi.rb
from ./sample_script:3:in `<main>'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:156:in `require'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:168:in `require'
from /Users/dougedey/.gem/ruby/2.7.2/gems/dogapi-1.44.0/lib/dogapi.rb:6:in `<top (required)>'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /Users/dougedey/.gem/ruby/2.7.2/gems/dogapi-1.44.0/lib/dogapi/facade.rb:7:in `<top (required)>'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /Users/dougedey/.gem/ruby/2.7.2/gems/dogapi-1.44.0/lib/dogapi/v2.rb:5:in `<top (required)>'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /Users/dougedey/.gem/ruby/2.7.2/gems/dogapi-1.44.0/lib/dogapi/v2/dashboard_list.rb:5:in `<top (required)>'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /opt/rubies/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
While I do understand this is a warning, I don't want to suppress warnings in my application as I want to ensure I don't miss out on warnings that indicate potential issues.
DogApi should not produce warnings when used in the recommended way
Environment and Versions (please complete the following information):
Ruby 2.7.2 (ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19])
Dogapi 1.44.0
Additional context
I poked around locally at fixing this, and I don't think that the require 'dogapi' lines are needed at all when following the documentation (I removed then with bundle open dopgapi and saw no adverse effects to my tests)
The text was updated successfully, but these errors were encountered:
Describe the bug
When running with this gem under Ruby 2.7.2, there's a large number of (loud) warnings about circular dependency loading
I'm following the documentation from this repo and I have
require 'dogapi'
in my gem initialization code.Example
While I do understand this is a warning, I don't want to suppress warnings in my application as I want to ensure I don't miss out on warnings that indicate potential issues.
To Reproduce
Run the following script:
Expected behavior
DogApi should not produce warnings when used in the recommended way
Environment and Versions (please complete the following information):
Ruby 2.7.2 (
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
)Dogapi 1.44.0
Additional context
I poked around locally at fixing this, and I don't think that the
require 'dogapi'
lines are needed at all when following the documentation (I removed then withbundle open dopgapi
and saw no adverse effects to my tests)The text was updated successfully, but these errors were encountered: