travis.rb icon indicating copy to clipboard operation
travis.rb copied to clipboard

Ruby 3.2.2 install failure (1.12.0, 1.13.0)

Open smathews opened this issue 11 months ago • 4 comments

Using ruby 3.2.2 on Fedora 38. Upgrading from 1.11.1. I've uninstalled all gems and I'm still getting a failure when running travis. This happens with 1.12.0 and 1.13.0.

[smathews@fedora ~]$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
[smathews@fedora ~]$ gem install travis --no-document
Fetching launchy-2.5.2.gem
Fetching highline-2.1.0.gem
Fetching pusher-client-0.6.2.gem
Fetching faraday-net_http-3.0.2.gem
Fetching json_pure-2.6.3.gem
Fetching public_suffix-5.0.4.gem
Fetching faraday-2.7.12.gem
Fetching websocket-1.2.10.gem
Fetching faraday-rack-2.0.0.gem
Fetching addressable-2.8.6.gem
Fetching travis-1.13.0.gem
Successfully installed websocket-1.2.10
Successfully installed pusher-client-0.6.2
Successfully installed public_suffix-5.0.4
Successfully installed addressable-2.8.6
Successfully installed launchy-2.5.2
Successfully installed json_pure-2.6.3
Successfully installed highline-2.1.0
Successfully installed faraday-net_http-3.0.2
Successfully installed faraday-2.7.12
Successfully installed faraday-rack-2.0.0
Successfully installed travis-1.13.0
11 gems installed
[smathews@fedora ~]$ travis version
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- rack/test (LoadError)
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/smathews/.local/share/gem/ruby/gems/faraday-rack-2.0.0/lib/faraday/adapter/rack.rb:3:in `<top (required)>'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/smathews/.local/share/gem/ruby/gems/faraday-rack-2.0.0/lib/faraday/rack.rb:4:in `<top (required)>'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/client/session.rb:9:in `<top (required)>'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/client.rb:9:in `<top (required)>'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli.rb:4:in `<top (required)>'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/bin/travis:9:in `<top (required)>'
        from /home/smathews/bin/travis:25:in `load'
        from /home/smathews/bin/travis:25:in `<main>'

I noticed that rack/test is in the dev dependencies, so I tried this as well.

[smathews@fedora ~]$ gem install --dev travis --no-document
Fetching rspec-3.13.0.gem
Fetching diff-lcs-1.5.1.gem
Fetching tilt-2.3.0.gem
Fetching rack-2.2.8.1.gem
Fetching rspec-expectations-3.13.0.gem
Fetching rspec-support-3.13.1.gem
Fetching rspec-core-3.13.0.gem
Fetching rack-test-2.1.0.gem
Fetching rspec-mocks-3.13.0.gem
Fetching rack-protection-3.0.6.gem
Fetching mustermann-3.0.0.gem
Fetching sinatra-3.0.6.gem
Fetching rspec-its-1.3.0.gem
Successfully installed tilt-2.3.0
Successfully installed rack-2.2.8.1
Successfully installed rack-test-2.1.0
Successfully installed rspec-support-3.13.1
Successfully installed rspec-core-3.13.0
ERROR:  Error installing travis:
        rspec requires rspec-expectations (~> 3.13.0)

I then installed rspec manually.

[smathews@fedora ~]$ gem install rspec
Successfully installed diff-lcs-1.5.1
Successfully installed rspec-mocks-3.13.0
Successfully installed rspec-expectations-3.13.0
Successfully installed rspec-3.13.0
Parsing documentation for diff-lcs-1.5.1
Installing ri documentation for diff-lcs-1.5.1
Parsing documentation for rspec-mocks-3.13.0
Installing ri documentation for rspec-mocks-3.13.0
Parsing documentation for rspec-expectations-3.13.0
Installing ri documentation for rspec-expectations-3.13.0
Parsing documentation for rspec-3.13.0
Installing ri documentation for rspec-3.13.0
Done installing documentation for diff-lcs, rspec-mocks, rspec-expectations, rspec after 2 seconds
4 gems installed

Still failure (although now different)

[smathews@fedora ~]$ gem install --dev travis --no-document
Successfully installed rack-protection-3.0.6
Successfully installed mustermann-3.0.0
Successfully installed sinatra-3.0.6
Successfully installed rspec-its-1.3.0
Successfully installed travis-1.13.0
5 gems installed
[smathews@fedora ~]$ travis version
/home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli/command.rb:334:in `format': wrong number of arguments (given 5, expected 1..3) (ArgumentError)
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli/command.rb:315:in `store_error'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli/command.rb:235:in `rescue in execute'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli/command.rb:200:in `execute'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli.rb:66:in `run'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/bin/travis:20:in `<top (required)>'
        from /home/smathews/bin/travis:25:in `load'
        from /home/smathews/bin/travis:25:in `<main>'
/home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/tools/completion.rb:37:in `update_completion': undefined method `mkdir_p' for Travis::Tools::Completion:Module (NoMethodError)

        mkdir_p(config_path)
        ^^^^^^^
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli/command.rb:178:in `check_completion'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli/command.rb:206:in `execute'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/lib/travis/cli.rb:66:in `run'
        from /home/smathews/.local/share/gem/ruby/gems/travis-1.13.0/bin/travis:20:in `<top (required)>'
        from /home/smathews/bin/travis:25:in `load'
        from /home/smathews/bin/travis:25:in `<main>'

smathews avatar Mar 20 '24 15:03 smathews