Skip to content

Commit

Permalink
Merge pull request #137721 from chenrui333/rust-analyzer-rust-conflic…
Browse files Browse the repository at this point in the history
…ts_with

rust, rust-analyzer: add conflicts_with both install rust-analyzer
  • Loading branch information
BrewTestBot authored Jul 26, 2023
2 parents aef6d24 + 702eaf9 commit 5882475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/rust-analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Formula/rust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5882475

Please sign in to comment.