Skip to content

Conversation

@kenhys
Copy link
Contributor

@kenhys kenhys commented Dec 27, 2023

Which issue(s) this PR fixes:

N/A

What this PR does / why we need it:

open("|command") spawns command and create pipes for processing pipeline.

This feature of Kernel#open is deprecated, replace it with IO#popen.

It fixes the following warning:

warning: Calling Kernel#open with a leading '|' is deprecated and will
be removed in Ruby 4.0; use IO.popen instead

Docs Changes:

N/A

Release Note:

N/A

open("|command") spawns command and create pipes for
processing pipeline.

This feature of Kernel#open is deprecated, replace it with
IO#popen.

It fixes the following warning:

  warning: Calling Kernel#open with a leading '|' is deprecated and will
  be removed in Ruby 4.0; use IO.popen instead

Signed-off-by: Kentaro Hayashi <[email protected]>
@kenhys kenhys added this to the v1.17.0 milestone Dec 27, 2023
@ashie ashie self-requested a review January 10, 2024 02:29
Copy link
Member

@ashie ashie left a comment

Choose a reason for hiding this comment

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

LGTM

@ashie ashie merged commit cbc10e3 into fluent:master Jan 10, 2024
@kenhys kenhys deleted the use-io-popen branch March 14, 2024 02:57
@Watson1978 Watson1978 mentioned this pull request Dec 8, 2025
@Watson1978 Watson1978 added the backport to v1.16 We will backport this fix to the LTS branch label Dec 8, 2025
@Watson1978 Watson1978 added the backported "backport to LTS" is done label Dec 9, 2025
daipom pushed a commit that referenced this pull request Dec 9, 2025
Backport #4369

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

N/A

**What this PR does / why we need it**: 

open("|command") spawns command and create pipes for processing
pipeline.

This feature of Kernel#open is deprecated, replace it with IO#popen.

It fixes the following warning:

  warning: Calling Kernel#open with a leading '|' is deprecated and will
  be removed in Ruby 4.0; use IO.popen instead

**Docs Changes**:

N/A

**Release Note**: 

N/A

Signed-off-by: Kentaro Hayashi <[email protected]>
Co-authored-by: Kentaro Hayashi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport to v1.16 We will backport this fix to the LTS branch backported "backport to LTS" is done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants