Skip to content

Conversation

@ivorbosloper
Copy link

Installing elasticsearch-full fails with a MethodDeprecatedError. Replace pathutils.rmtree by fileutils.remove_dir.
Fixes #173

@cla-checker-service
Copy link

cla-checker-service bot commented Apr 29, 2025

💚 CLA has been signed

Copy link

@nklkarthi nklkarthi left a comment

Choose a reason for hiding this comment

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

# Move config files into etc
(etc/"elasticsearch").install Dir[libexec/"config/*"]
FileUtils.rm_r(libexec/"config")

This worked for me

@ivorbosloper
Copy link
Author

# Move config files into etc
(etc/"elasticsearch").install Dir[libexec/"config/*"]
FileUtils.rm_r(libexec/"config")

This worked for me

Thanks @nklkarthi . Not so familiar with Ruby, there seem to be many different ways to delete a directory. The current code with rmtree is deprecated, so we should replace it with some FileUtils code....

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.

MethodDeprecatedError: Calling rmtree is disabled! Use FileUtils#rm_r instead

2 participants