-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Raise minimum required ruby version #4288
Conversation
2f0b312
to
a933dff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! 👍
Thanks! |
It depends on perspective:
Created PR based on the former, but reconsidered it should be the latter. Thanksm, I'll fix it. |
The service discovery plugin helper use Array#prepend, it means that the ruby version must be 2.5 or later precisely. fluentd.work/lib/fluent/plugin_helper/service_discovery.rb:71:in `service_discovery_configure': undefined method `prepend' for []:Array (NoMethodError) from /work/fluent/fluentd/fluentd.work/lib/fluent/plugin/out_ NOTE: It works with Ruby 2.5 or later, but 2.x had already reached EOL. At least, it may better to set verified version with CI. Signed-off-by: Kentaro Hayashi <[email protected]>
a933dff
to
4b2b2dd
Compare
Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends on perspective:
* Precisely set minimum: * Pros: can run a bit older even though already reached EOL. * Cons: allow non-supported version to run with. * Only set CI certified version: * Pros: can recommend verified version with CI. * Cons: cut off ruby version actually work.
Created PR based on the former, but reconsidered it should be the latter.
Thanksm, I'll fix it.
I see!
At least, we need this fix.
We can think about whether we should update the version to 2.7 or not later.
Thanks! |
When td-agent reached EOL (Dec, 2023), we will drop 2.7 from CI. |
Which issue(s) this PR fixes:
N/A
What this PR does / why we need it:
The service discovery plugin helper use Array#prepend, it means that the ruby version must be 2.5 or later precisely.
fluentd.work/lib/fluent/plugin_helper/service_discovery.rb:71:in
service_discovery_configure': undefined method
prepend' for[]:Array (NoMethodError) from
/work/fluent/fluentd/fluentd.work/lib/fluent/plugin/out_
Docs Changes:
fluent/fluentd-docs-gitbook#471
Release Note:
N/A