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

v*: Fix Homebrew/NoFileutilsRmrf RuboCop offenses #178714

Merged
merged 6 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Formula/v/vault-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class VaultCli < Formula

def install
# Remove windows files
rm_f Dir["bin/*.bat"]
rm(Dir["bin/*.bat"])

libexec.install Dir["*"]
bin.install Dir["#{libexec}/bin/*"]
Expand Down
2 changes: 1 addition & 1 deletion Formula/v/vercel-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def install
arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s
node_modules = libexec/"lib/node_modules/vercel/node_modules"
node_modules.glob("deasync/bin/*")
.each { |dir| dir.rmtree if dir.basename.to_s != "#{os}-#{arch}" }
.each { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" }
end

test do
Expand Down
2 changes: 1 addition & 1 deletion Formula/v/vert.x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class VertX < Formula
depends_on "openjdk@17"

def install
rm_f Dir["bin/*.bat"]
rm(Dir["bin/*.bat"])
libexec.install %w[bin conf lib]
(bin/"vertx").write_env_script libexec/"bin/vertx", Language::Java.overridable_java_home_env("17")
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/v/volk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def install
ENV.prepend_path "PYTHONPATH", buildpath/"venv"/Language::Python.site_packages(python3)

# Avoid falling back to bundled cpu_features
(buildpath/"cpu_features").rmtree
rm_r(buildpath/"cpu_features")

# Avoid references to the Homebrew shims directory
inreplace "lib/CMakeLists.txt" do |s|
Expand Down
2 changes: 1 addition & 1 deletion Formula/v/vroom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def install

# Use brewed dependencies instead of vendored dependencies
cd "include" do
rm_rf ["cxxopts", "rapidjson"]
rm_r(["cxxopts", "rapidjson"])
mkdir_p "cxxopts"
ln_s Formula["cxxopts"].opt_include, "cxxopts/include"
ln_s Formula["rapidjson"].opt_include, "rapidjson"
Expand Down
2 changes: 1 addition & 1 deletion Formula/v/vue-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def install

# Remove vendored pre-built binary `terminal-notifier`
node_notifier_vendor_dir = libexec/"lib/node_modules/@vue/cli/node_modules/node-notifier/vendor"
node_notifier_vendor_dir.rmtree # remove vendored pre-built binaries
rm_r(node_notifier_vendor_dir) # remove vendored pre-built binaries

if OS.mac?
terminal_notifier_dir = node_notifier_vendor_dir/"mac.noindex"
Expand Down
Loading