mkristian / jar-dependencies

manage jar dependencies for ruby gems
MIT License
34 stars 19 forks source link

avoid circular require #53

Closed kares closed 7 years ago

kares commented 7 years ago

would be a nice improvement not to see a circular require warning in verbose mode e.g.

jruby -v -S gem install rake

jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.112-b15 on 1.8.0_112-b15 +jit [linux-x86_64]
/opt/local/rvm/gems/jruby-9.1.7.0@global/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:58: warning: shadowing outer local variable - path
/opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55: warning: loading in progress, circular require considered harmful - /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/jar_dependencies.rb
          require at org/jruby/RubyKernel.java:961
          require at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/jars/maven_settings.rb:1
          require at org/jruby/RubyKernel.java:961
           (root) at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
          require at org/jruby/RubyKernel.java:961
           (root) at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/jar_dependencies.rb:21
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
          require at org/jruby/RubyKernel.java:961
          require at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/jar-dependencies.rb:22
          require at org/jruby/RubyKernel.java:961
           (root) at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
          require at org/jruby/RubyKernel.java:961
           (root) at /opt/local/rvm/gems/jruby-9.1.7.0@global/gems/jruby-openssl-0.9.19-java/lib/jopenssl/load.rb:11
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
          require at org/jruby/RubyKernel.java:961
          require at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
           <main> at /opt/local/rvm/gems/jruby-9.1.7.0@global/gems/jruby-openssl-0.9.19-java/lib/openssl.rb:1
          require at org/jruby/RubyKernel.java:961
           (root) at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
          require at org/jruby/RubyKernel.java:961
           (root) at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/security.rb:12
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
          require at org/jruby/RubyKernel.java:961
          require at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/package.rb:44
             load at org/jruby/RubyKernel.java:979
  block in (root) at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
             each at org/jruby/RubyArray.java:1733
          require at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
           (root) at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/installer.rb:10
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
          require at org/jruby/RubyKernel.java:961
          require at /opt/local/rvm/rubies/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
           <main> at /opt/local/rvm/gems/jruby-9.1.7.0@global/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb:2
             load at org/jruby/RubyKernel.java:979
           <main> at /opt/local/rvm/rubies/jruby-9.1.7.0/bin/gem:4
Fetching: rake-12.0.0.gem (100%)
...
mkristian commented 7 years ago

thanks