CI: Ruby 2.4 not supported by test-unit-ruby-core
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 55/100
Direção de pesquisa
Comece pela falha do Ruby 2.4 em vendor/bundle/ruby/2.4.0/gems/test-unit-ruby-core-1.0.15/lib/core_assertions.rb e pelo require em test/lib/helper.rb:2. Verifique a execução do CI para identificar como essa dependência é selecionada. Está concluído quando o job de CI do Ruby 2.4 carregar os testes sem o SyntaxError relatado.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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)
- Linguagem predominante
- Ruby
- Estrelas
- 46
- Forks
- 16
- Merge médio
- 3min
- PRs com merge (30d)
- 1
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ruby/forwardable
-
Broken link Abertabug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
ruby/forwardable#42 ·
-
Broken link Abertabug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
ruby/forwardable#41 ·
-
Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
ruby/forwardable#17 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
ruby/forwardable#12 · 4 comentários ·
Todas as issues de ruby/forwardable
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
ds-drift
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
we-promise/sure#3693 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
simp/pupmod-simp-simp#395 ·