Skip to content

Fix deprecation warning with latest jruby/bundler #17766

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
Jul 1, 2025

Conversation

donoghuc
Copy link
Member

@donoghuc donoghuc commented Jun 30, 2025

Release notes

[rn:skip]

What does this PR do?

This commit updates the pluginmanager to not use a deprecated argument.

See rubygems/rubygems@d1963bf

Why is it important/What is the impact to the user?

Without this patch use of the plugin manager can surface warnings that are not actionable by the logstash user. This commit fixes the underlying issue so messages are no longer surfaced.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

Related issues

Logs

bash-5.1$ logstash-plugin install file:///usr/share/logstash/logstash-offline-plugins-9.1.0.zip
Using bundled JDK: /usr/share/logstash/jdk
Installing file: /usr/share/logstash/logstash-offline-plugins-9.1.0.zip
[DEPRECATED] `Definition#lock` was passed a target file argument. To fix this warning, remove it from the `Definition#lock` call.
Resolving dependencies...
Install successful

This commit updates the pluginmanager to not use a deprecated argument.

See rubygems/rubygems@d1963bf
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Contributor

mergify bot commented Jun 30, 2025

This pull request does not have a backport label. Could you fix it @donoghuc? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@donoghuc
Copy link
Member Author

@elasticmachine
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Copy link
Member

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

👍

While this isn't backward-compatible with Bundlers < v2.6.0 when the deprecation notice was introduced, those old bundlers aren't compatible with our current jruby runtime. I think we're in the clear.

@donoghuc donoghuc merged commit 443e527 into elastic:main Jul 1, 2025
12 checks passed
@donoghuc
Copy link
Member Author

donoghuc commented Jul 1, 2025

@Mergifyio backport 9.1

Copy link
Contributor

mergify bot commented Jul 1, 2025

backport 9.1

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 1, 2025
This commit updates the pluginmanager to not use a deprecated argument.

See rubygems/rubygems@d1963bf

(cherry picked from commit 443e527)
donoghuc added a commit that referenced this pull request Jul 1, 2025
This commit updates the pluginmanager to not use a deprecated argument.

See rubygems/rubygems@d1963bf

(cherry picked from commit 443e527)

Co-authored-by: Cas Donoghue <[email protected]>
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