Skip to content

Commit cfc9a69

Browse files
committed
Fix a build error in the Ruby 3.1 CI matrix
## Motivation and Context This resolves the following build failure that occurs when using Ruby 3.1 with I18n 1.15.0: ```console $ bundle exec rake (snip) /Users/koic/.rbenv/versions/3.1.5/lib/ruby/gems/3.1.0/gems/i18n-1.15.0/lib/i18n.rb:58: in `config': undefined method `[]' for Fiber:Class (NoMethodError) current = Fiber[:i18n_config] || self.config = I18n::Config.new ^^^^^^^^^^^^^^ from /Users/koic/.rbenv/versions/3.1.5/lib/ruby/gems/3.1.0/gems/i18n-1.15.0/lib/i18n.rb:88:in `load_path' ``` https://github.com/modelcontextprotocol/ruby-sdk/actions/runs/27724973112/job/82025136923 According to the report in ruby-i18n/i18n#735, this issue has been fixed in I18n 1.15.1 and later. However, the already released I18n 1.15.0 still triggers the build error. While this could potentially be addressed in a better way on the I18n side, this change updates the Gemfile to avoid using I18n 1.15.0, which is known to cause the issue. ## How Has This Been Tested? The build error described above has been resolved. ## Breaking Changes None.
1 parent c8e0cd9 commit cfc9a69

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Gemfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ gem "rackup", ">= 2.1.0"
1717
gem "activesupport"
1818
# Fix io-console install error when Ruby 3.0.
1919
gem "debug" if RUBY_VERSION >= "3.1"
20+
# Avoid i18n 1.15.0, which breaks on Ruby 3.1 (ruby-i18n/i18n#735).
21+
gem "i18n", "!= 1.15.0"
2022
gem "rake", "~> 13.0"
2123
gem "sorbet-static-and-runtime" if RUBY_VERSION >= "3.0"
2224
gem "yard", "~> 0.9"

0 commit comments

Comments
 (0)