Skip to content

Skip loading gem version of pathname on Ruby 4.0+ #271

Skip loading gem version of pathname on Ruby 4.0+

Skip loading gem version of pathname on Ruby 4.0+ #271

Triggered via push April 7, 2026 07:54
Status Failure
Total duration 1m 8s
Artifacts

test.yml

on: push
ruby-versions  /  Generate Ruby versions
5s
ruby-versions / Generate Ruby versions
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

13 errors
build (head / ubuntu-latest)
Process completed with exit code 1.
Error: test/pathname/test_pathname.rb#L1522
NoMethodError: undefined method 'rmtree' for an instance of Pathname /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1522:in 'block in TestPathname#test_rmtree' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:340:in 'block (2 levels) in TestPathname#with_tmpchdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'Dir.chdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'block in TestPathname#with_tmpchdir' /home/runner/.rubies/ruby-head/lib/ruby/4.1.0+1/tmpdir.rb:105:in 'Dir.mktmpdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:337:in 'TestPathname#with_tmpchdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1518:in 'TestPathname#test_rmtree'
Error: test/pathname/test_pathname.rb#L1363
NoMethodError: undefined method 'mktmpdir' for class Pathname /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1363:in 'TestPathname#test_mktmpdir'
Error: test/pathname/test_pathname.rb#L1460
NoMethodError: undefined method 'find' for an instance of Pathname /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1460:in 'block in TestPathname#test_find' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:340:in 'block (2 levels) in TestPathname#with_tmpchdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'Dir.chdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'block in TestPathname#with_tmpchdir' /home/runner/.rubies/ruby-head/lib/ruby/4.1.0+1/tmpdir.rb:105:in 'Dir.mktmpdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:337:in 'TestPathname#with_tmpchdir' /home/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1454:in 'TestPathname#test_find'
build (head / macos-latest)
Process completed with exit code 1.
Error: test/pathname/test_pathname.rb#L1522
NoMethodError: undefined method 'rmtree' for an instance of Pathname /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1522:in 'block in TestPathname#test_rmtree' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:340:in 'block (2 levels) in TestPathname#with_tmpchdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'Dir.chdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'block in TestPathname#with_tmpchdir' /Users/runner/.rubies/ruby-head/lib/ruby/4.1.0+1/tmpdir.rb:105:in 'Dir.mktmpdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:337:in 'TestPathname#with_tmpchdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1518:in 'TestPathname#test_rmtree'
Error: test/pathname/test_pathname.rb#L1363
NoMethodError: undefined method 'mktmpdir' for class Pathname /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1363:in 'TestPathname#test_mktmpdir'
Error: test/pathname/test_pathname.rb#L1460
NoMethodError: undefined method 'find' for an instance of Pathname /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1460:in 'block in TestPathname#test_find' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:340:in 'block (2 levels) in TestPathname#with_tmpchdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'Dir.chdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:339:in 'block in TestPathname#with_tmpchdir' /Users/runner/.rubies/ruby-head/lib/ruby/4.1.0+1/tmpdir.rb:105:in 'Dir.mktmpdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:337:in 'TestPathname#with_tmpchdir' /Users/runner/work/pathname/pathname/test/pathname/test_pathname.rb:1454:in 'TestPathname#test_find'
build (mingw / windows-latest)
Process completed with exit code 1.
build (mswin / windows-latest)
Process completed with exit code 1.
Error: test/pathname/test_pathname.rb#L1522
NoMethodError: undefined method 'rmtree' for an instance of Pathname D:/a/pathname/pathname/test/pathname/test_pathname.rb:1522:in 'block in TestPathname#test_rmtree' D:/a/pathname/pathname/test/pathname/test_pathname.rb:340:in 'block (2 levels) in TestPathname#with_tmpchdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:339:in 'Dir.chdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:339:in 'block in TestPathname#with_tmpchdir' D:/ruby-mswin/lib/ruby/4.1.0+1/tmpdir.rb:105:in 'Dir.mktmpdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:337:in 'TestPathname#with_tmpchdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:1518:in 'TestPathname#test_rmtree'
Error: test/pathname/test_pathname.rb#L1363
NoMethodError: undefined method 'mktmpdir' for class Pathname D:/a/pathname/pathname/test/pathname/test_pathname.rb:1363:in 'TestPathname#test_mktmpdir'
Error: test/pathname/test_pathname.rb#L1460
NoMethodError: undefined method 'find' for an instance of Pathname D:/a/pathname/pathname/test/pathname/test_pathname.rb:1460:in 'block in TestPathname#test_find' D:/a/pathname/pathname/test/pathname/test_pathname.rb:340:in 'block (2 levels) in TestPathname#with_tmpchdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:339:in 'Dir.chdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:339:in 'block in TestPathname#with_tmpchdir' D:/ruby-mswin/lib/ruby/4.1.0+1/tmpdir.rb:105:in 'Dir.mktmpdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:337:in 'TestPathname#with_tmpchdir' D:/a/pathname/pathname/test/pathname/test_pathname.rb:1454:in 'TestPathname#test_find'