CI: Ruby 2.4 not supported by test-unit-ruby-core
还没有人认领这个 Issue。
评估
调研方向
从 vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb 中的 Ruby 2.4 失败以及 test/lib/helper.rb:2 中的 require 开始。检查 CI 运行,以确定如何选择此依赖项。当 Ruby 2.4 CI job 在没有报告的 SyntaxError 的情况下加载测试时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
The CI for Ruby 2.4 fails with a SyntaxError because the test library uses Ruby 2.5 syntax features.
Your RubyGems version (2.6.14.4) has a bug that prevents `required_ruby_version` from working for Bundler. Any scripts that use `gem install bundler` will break as soon as Bundler drops support for your Ruby version. Please upgrade RubyGems to avoid future breakage and silence this warning by running `gem update --system 3.2.3`
/home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:390: warning: possibly useless use of a variable in void context
/home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:404: warning: mismatched indentations at 'end' with 'def' at 342
/home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:413: warning: mismatched indentations at 'end' with 'module' at 74
/home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:1030: warning: mismatched indentations at 'end' with 'module' at 41
/home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:1031: warning: mismatched indentations at 'end' with 'module' at 3
/opt/hostedtoolcache/Ruby/2.4.10/x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require': /home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:390: syntax error, unexpected keyword_rescue, expecting keyword_end (SyntaxError)
rescue => marshal_error
^
/home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:393: syntax error, unexpected keyword_else, expecting keyword_end
else
^
/home/runner/work/forwardable/forwardable/vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb:1032: syntax error, unexpected keyword_end, expecting end-of-input
from /opt/hostedtoolcache/Ruby/2.4.10/x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
from /opt/hostedtoolcache/Ruby/2.4.10/x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from /home/runner/work/forwardable/forwardable/test/lib/helper.rb:2:in `<top (required)>'
from /opt/hostedtoolcache/Ruby/2.4.10/x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/hostedtoolcache/Ruby/2.4.10/x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
rake aborted!
Command failed with status (1)
- 主要语言
- Ruby
- 星标
- 46
- 派生
- 16
- 平均合并
- 3 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby/forwardable 的其他 Issue
-
Broken link 未关闭bug
难度 1/5 1 小时以内 新手友好度 55/100
ruby/forwardable#42 ·
-
Broken link 未关闭bug
难度 1/5 1 小时以内 新手友好度 55/100
ruby/forwardable#41 ·
-
Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call 未关闭
难度 3/5 1-2 天 新手友好度 35/100
ruby/forwardable#17 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
ruby/forwardable#12 · 4 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
难度 2/5 1-3 小时 新手友好度 70/100
-
ds-drift
难度 2/5 1-3 小时 新手友好度 70/100
we-promise/sure#3693 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
simp/pupmod-simp-simp#395 ·