Skip to content
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

Update nokogiri to 1.13.6, and install it only on Windows #389

Merged
merged 1 commit into from
May 23, 2022

Conversation

ashie
Copy link
Member

@ashie ashie commented May 23, 2022

Only fluent-plugin-windows-eventlog and fluent-plugin-parser-winevt_xml
are explicitly depdends on nokogiri.
Because nokogiri is often reported vulnerabilities, it should be installed
and updated by td-agent-gem if users really require it.

TODO: Probably we need to install rexml or something other for aws-sdk-core
with Ruby 3.x:

https://github.com/aws/aws-sdk-ruby/blob/64e9ea97c318cb7a10fdf7c0979307a772f06b51/gems/aws-sdk-core/lib/aws-sdk-core/xml/parser.rb#L70

Signed-off-by: Takuro Ashie [email protected]

@ashie ashie requested a review from cosmo0920 May 23, 2022 01:09
@ashie ashie force-pushed the update-nokogiri branch from 1bd8089 to 5d643f8 Compare May 23, 2022 01:21
@kenhys kenhys self-requested a review May 23, 2022 01:32
Copy link
Contributor

@kenhys kenhys left a comment

Choose a reason for hiding this comment

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

LGTM.

Only fluent-plugin-windows-eventlog and fluent-plugin-parser-winevt_xml
are explicitly depdends on nokogiri.
Because nokogiri is often reported vulnerabilities, it should be installed
and updated by td-agent-gem if users really require it.

TODO: Probably we need to install rexml or something other for aws-sdk-core
with Ruby 3.x:

https://github.com/aws/aws-sdk-ruby/blob/64e9ea97c318cb7a10fdf7c0979307a772f06b51/gems/aws-sdk-core/lib/aws-sdk-core/xml/parser.rb#L70

Signed-off-by: Takuro Ashie <[email protected]>
@ashie ashie force-pushed the update-nokogiri branch from 5d643f8 to f6d7de3 Compare May 23, 2022 01:34
Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

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

Basically, until we will use Ruby 3.x, this change should be correct.

The following comments are nitpicks:

For Ubuntu 22.04 package, we need to install nokogiri for aws-sdk-core?
Should we leave it in a comment, or file an issue for Ruby 3.x upgrade?

@ashie
Copy link
Member Author

ashie commented May 23, 2022

For Ubuntu 22.04 package, we need to install nokogiri for aws-sdk-core? Should we leave it in a comment, or file an issue for Ruby 3.x upgrade?

Probably we don't need to do anything, rexml will be installed automatically.
Although rexml is no longer "default gem" since Ruby 3.0, it's still "bundled gem".
I confirmed that ubuntu-jammy package built by this branch includes rexml gem.

@ashie ashie merged commit e2ceee2 into master May 23, 2022
@ashie ashie deleted the update-nokogiri branch May 23, 2022 02:36
@cosmo0920
Copy link
Contributor

Noted. Thanks!

@ashie ashie mentioned this pull request Jun 24, 2022
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