From b65280d4b29e9765339e612f8f1b5189249ea6ac Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 26 Jul 2023 14:32:17 -0400 Subject: [PATCH 1/2] rust-analyzer: conflicts_with rust Signed-off-by: Rui Chen --- Formula/rust-analyzer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/rust-analyzer.rb b/Formula/rust-analyzer.rb index 8307082658911..824ada981c060 100644 --- a/Formula/rust-analyzer.rb +++ b/Formula/rust-analyzer.rb @@ -19,6 +19,8 @@ class RustAnalyzer < Formula depends_on "rust" => :build + conflicts_with "rust", because: "both install `rust-analyzer` binary" + def install cd "crates/rust-analyzer" do system "cargo", "install", "--bin", "rust-analyzer", *std_cargo_args From 702eaf9de5a3573c17388d2f5f07c7c7303867a6 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 26 Jul 2023 14:32:32 -0400 Subject: [PATCH 2/2] rust-analyzer: conflicts_with rust Signed-off-by: Rui Chen --- Formula/rust.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/rust.rb b/Formula/rust.rb index ac91b09aa83f8..5d5bdcbb55791 100644 --- a/Formula/rust.rb +++ b/Formula/rust.rb @@ -42,6 +42,8 @@ class Rust < Formula uses_from_macos "curl" uses_from_macos "zlib" + conflicts_with "rust-analyzer", because: "both install `rust-analyzer` binary" + resource "cargobootstrap" do on_macos do # From https://github.com/rust-lang/rust/blob/#{version}/src/stage0.json