Skip to content

Commit cfae15a

Browse files
authored
Suppress warnings to fix ruby-head CI (#34)
There seems to be no way to fix this. It doesn't happen in an installed directory, so it's likely a false positive and/or a bug in rubygems. | <internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85: warning: <internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85: warning: loading in progress, circular require considered harmful - /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb | from /home/runner/work/erb/erb/libexec/erb:0:in `require' | from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb:3:in `<top (required)>' | from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/setup.rb:3:in `require_relative' | from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/shared_helpers.rb:8:in `<top (required)>' | from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/shared_helpers.rb:8:in `require_relative' | from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/rubygems_integration.rb:3:in `<top (required)>' | from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/bundler/rubygems_integration.rb:3:in `require' | from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems.rb:1352:in `<top (required)>' | from <internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85:in `require' | from <internal:/home/runner/.rubies/ruby-head/lib/ruby/3.2.0+3/rubygems/core_ext/kernel_require.rb>:85:in `require'
1 parent 903788e commit cfae15a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/erb/test_erb_command.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
class TestErbCommand < Test::Unit::TestCase
66
def test_var
77
pend if RUBY_ENGINE == 'truffleruby'
8-
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}", "-w",
8+
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}",
99
File.expand_path("../../libexec/erb", __dir__),
1010
"var=hoge"],
1111
"<%=var%>", ["hoge"])
1212
end
1313

1414
def test_template_file_encoding
1515
pend if RUBY_ENGINE == 'truffleruby'
16-
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}", "-w",
16+
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}",
1717
File.expand_path("../../libexec/erb", __dir__)],
1818
"<%=''.encoding.to_s%>", ["UTF-8"])
1919
end
@@ -25,7 +25,7 @@ def test_deprecated_option
2525
"warning: -S option of erb command is deprecated. Please do not use this.",
2626
/\n.+\/libexec\/erb:\d+: warning: Passing safe_level with the 2nd argument of ERB\.new is deprecated\. Do not use it, and specify other arguments as keyword arguments\.\n/,
2727
]
28-
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}", "-w",
28+
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}",
2929
File.expand_path("../../libexec/erb", __dir__),
3030
"-S", "0"],
3131
"hoge", ["hoge"], warnings)

0 commit comments

Comments
 (0)