Skip to content

Commit

Permalink
Remove check for cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
tedbauer committed Apr 27, 2024
1 parent 4e27351 commit bdc64cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Formula/up.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ def install
"#{HOMEBREW_PREFIX}/opt/rust/bin" # Possible Homebrew Rust location
]

cargo_path = potential_cargo_paths.find { |path| File.exist? "#{path}/cargo" }
unless cargo_path
odie <<~EOS
Cargo (the Rust package manager) is required to install 'up'.
Please install Rust from: https://www.rust-lang.org/tools/install
EOS
end
# cargo_path = potential_cargo_paths.find { |path| File.exist? "#{path}/cargo" }
# unless cargo_path
# odie <<~EOS
# Cargo (the Rust package manager) is required to install 'up'.
# Please install Rust from: https://www.rust-lang.org/tools/install
# EOS
# end

ENV["PATH"] = "#{cargo_path}:#{ENV['PATH']}"

Expand Down

0 comments on commit bdc64cf

Please sign in to comment.