From a2103c7d45733f48f535cc3bcca92090c4b449a5 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 7 Mar 2024 18:27:42 -0500 Subject: [PATCH 1/2] mongodb-atlas-cli: conflicts_with `nim` Signed-off-by: Rui Chen --- Formula/m/mongodb-atlas-cli.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/m/mongodb-atlas-cli.rb b/Formula/m/mongodb-atlas-cli.rb index b102bb7c6d08e..8d379c4542f55 100644 --- a/Formula/m/mongodb-atlas-cli.rb +++ b/Formula/m/mongodb-atlas-cli.rb @@ -25,6 +25,8 @@ class MongodbAtlasCli < Formula depends_on "mongosh" depends_on "podman" + conflicts_with "nim", because: "both install `atlas` executable" + def install with_env( ATLAS_VERSION: version.to_s, From dd564a5d91a69c638740ab6686d50ab7aa92e23d Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 7 Mar 2024 18:28:13 -0500 Subject: [PATCH 2/2] nim: conflicts_with mongodb-atlas-cli Signed-off-by: Rui Chen --- Formula/n/nim.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/n/nim.rb b/Formula/n/nim.rb index 58bcb37e33698..f222f63bd9849 100644 --- a/Formula/n/nim.rb +++ b/Formula/n/nim.rb @@ -27,6 +27,8 @@ class Nim < Formula depends_on "openssl@3" end + conflicts_with "mongodb-atlas-cli", because: "both install `atlas` executable" + def install if build.head? # this will clone https://github.com/nim-lang/csources_v1