Skip to content

Move win32-registry from default to bundled gems#16189

Merged
hsbt merged 1 commit into
ruby:masterfrom
larskanis:bundled-win32-registry
Feb 20, 2026
Merged

Move win32-registry from default to bundled gems#16189
hsbt merged 1 commit into
ruby:masterfrom
larskanis:bundled-win32-registry

Conversation

@larskanis

@larskanis larskanis commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Because win32-registry needs fiddle and fiddle is a bundled gem.

Bug #21855

@github-actions

Copy link
Copy Markdown

The following files are maintained in the following upstream repositories:

Please file a pull request to the above instead. Thank you!

Because win32-registry needs fiddle and fiddle is a bundled gem.

[Bug #21855]
@larskanis larskanis force-pushed the bundled-win32-registry branch from 2ebc46b to 6ca0f77 Compare February 18, 2026 06:28
@hsbt hsbt merged commit f01f66c into ruby:master Feb 20, 2026
91 checks passed
@larskanis larskanis deleted the bundled-win32-registry branch February 20, 2026 05:31
kenhys pushed a commit to fluent/fluentd that referenced this pull request Mar 31, 2026
**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>
github-actions Bot pushed a commit to fluent/fluentd that referenced this pull request Apr 5, 2026
**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>
Watson1978 added a commit to fluent/fluentd that referenced this pull request Apr 5, 2026
…by 4.1 (#5308) (#5317)

**Which issue(s) this PR fixes**: 
Backport #5308
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>
Co-authored-by: Shizuo Fujita <fujita@clear-code.com>
@CookiePLMonster

Copy link
Copy Markdown

Can we expect to see this backported to 3.4 at some point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants