b722d37f21 (master): [ruby/rubygems] Add a missing "require 'etc'" statement:

0 views
Skip to first unread message

Edouard CHIN

unread,
Jan 13, 2026, 6:12:27 AMJan 13
to ruby...@g.ruby-lang.org
Edouard CHIN 2026-01-12 14:09:36 +0000 (Mon, 12 Jan 2026)

New Revision: b722d37f21

https://github.com/ruby/ruby/commit/b722d37f21

Log:
[ruby/rubygems] Add a missing "require 'etc'" statement:

- Ref https://github.com/ruby/rubygems/pull/9171#discussion_r2658056892
- Referencing the constant Etc may raise a `NameError` depending on
whether other Rubygems/Bundler codepath have evaluated a prior
"require 'etc'". This can be reproduced with this Gemfile:

```ruby
source "https://rubygems.org"

gem 'prism', github: "ruby/prism"
```

https://github.com/ruby/rubygems/commit/5d435e6863

Modified files:
lib/rubygems/installer.rb
Reply all
Reply to author
Forward
0 new messages