Skip to content

Commit b2b9a65

Browse files
Watson1978github-actions[bot]
authored andcommitted
gem: add win32-registry as runtime dependency for Ruby 4.1 (#5308)
**Which issue(s) this PR fixes**: Fixes # **What this PR does / why we need it**: `win32-registry` gem will be moved from default to bundled gem at Ruby 4.1. Ref. ruby/ruby#16189 Therefore, if we do not add it as a runtime dependency, it will fail to load. See https://github.com/fluent/fluentd/actions/runs/23711126803/job/69070953279 ``` Error: -03-29 14:45:48 +0000 [error]: cannot load such file -- win32/registry path=\"win32/registry\" error_class=LoadError error=\"cannot load such file -- win32/registry\"\r\n"> was expected to include: <["#0 fluentd worker is now running worker=0", "#1 fluentd worker is now running worker=1", "#1 adding match pattern=\"dummy\" type=\"null\""]> D:/a/fluentd/fluentd/test/command/test_fluentd.rb:219:in 'TestFluentdCommand#assert_log_matches' D:/a/fluentd/fluentd/test/command/test_fluentd.rb:1077:in 'block (2 levels) in <class:TestFluentdCommand>' ``` **Docs Changes**: N/A **Release Note**: * gem: add win32-registry as runtime dependency for Ruby 4.1 Signed-off-by: Shizuo Fujita <fujita@clear-code.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 692acc8 commit b2b9a65

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

fluentd.gemspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Gem::Specification.new do |gem|
6565

6666
# gems that aren't default gems as of Ruby 3.5
6767
gem.add_runtime_dependency("fiddle", ["~> 1.1"])
68+
69+
# gems that aren't default gems as of Ruby 4.1
70+
gem.add_runtime_dependency("win32-registry", ["~> 0.1"])
6871
end
6972

7073
gem.add_development_dependency("rake", ["~> 13.0"])

0 commit comments

Comments
 (0)