Skip to content

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

Description

@ivorbosloper

Installing elasticsearch-full fails with a MethodDeprecatedError.
Locally installed is ruby version ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin24]

It seems a simple replacement of pathutils.rmtree by fileutils.remove_dir should fix it.

brew install elasticsearch-full

==> Fetching elastic/tap/elasticsearch-full
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.4-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/69a42f80a7a14f892ddcb7d63a53c1ccaecce67dc8ffa0ac125be8f31241b01e--elasticsearch-7.17.4-darwin-x86_64.tar.gz
==> Installing elasticsearch-full from elastic/tap
Warning: elasticsearch-full: No available formula with the name "elasticsearch". Did you mean elasticsearch-full?
'conflicts_with "elasticsearch"' should be removed from elasticsearch-full.rb.
Please report this issue to the elastic/homebrew-tap tap
 (not Homebrew/* repositories)!
Warning: Tried to install empty array to /opt/homebrew/etc/elasticsearch/jvm.options.d
Error: An exception occurred within a child process:
  MethodDeprecatedError: Calling rmtree is disabled! Use FileUtils#rm_r instead.
Please report this issue to the elastic/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions