Skip to content

Backport(v1.16): Add fiddle as dependency gem for Ruby 3.5 on Windows (#4869) #4919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Apr 23, 2025

Which issue(s) this PR fixes:
Backport #4869
Fixes #

What this PR does / why we need it:
Since Ruby 3.5, fiddle gem was marked as bundled gem.
ruby/ruby@10ecdeb

This patch will fix following warning on Windows Ruby 3.4 and fix load error on Windows Ruby 3.5:

C:/hostedtoolcache/windows/Ruby/3.4.2/x64/lib/ruby/gems/3.4.0/gems/serverengine-2.4.0/lib/serverengine/winsock.rb:21: warning: fiddle/import is found in fiddle, which will no longer be part of the default gems starting from Ruby 3.5.0.
You can add fiddle to your Gemfile or gemspec to silence this warning.

FYI)
fiddle has been used in

require 'fiddle/import'
require 'fiddle/types'

Docs Changes:

Release Note:

**Which issue(s) this PR fixes**:
Fixes #

**What this PR does / why we need it**:
Since Ruby 3.5, `fiddle` gem was marked as bundled gem.

ruby/ruby@10ecdeb

This patch will fix following warning on Windows Ruby 3.4 and fix load
error on Windows Ruby 3.5:

```
C:/hostedtoolcache/windows/Ruby/3.4.2/x64/lib/ruby/gems/3.4.0/gems/serverengine-2.4.0/lib/serverengine/winsock.rb:21: warning: fiddle/import is found in fiddle, which will no longer be part of the default gems starting from Ruby 3.5.0.
You can add fiddle to your Gemfile or gemspec to silence this warning.
```

FYI)
`fiddle` has been used in

https://github.com/fluent/fluentd/blob/f1f0bb2474ed8d4f7b6011a321a2b93e3b1dd9cb/lib/fluent/win32api.rb#L21-L22

**Docs Changes**:

**Release Note**:

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@daipom
Copy link
Contributor

daipom commented Apr 24, 2025

Hmm, do we need this for v1.16 series?

@Watson1978
Copy link
Contributor

If any users want to install using the gem install following the https://docs.fluentd.org/installation/install-by-gem, I think it would be better to merge this.

Copy link
Contributor

@daipom daipom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see! Thanks!

@daipom daipom merged commit 5384a56 into fluent:v1.16 Apr 24, 2025
15 of 16 checks passed
@kenhys kenhys deleted the backport-4869 branch April 24, 2025 07:33
@daipom daipom added this to the v1.16.8 milestone Apr 30, 2025
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