Skip to content

Commit 8eb91e6

Browse files
authored
Merge pull request #219899 from Homebrew/add-conflicts-with
various: declare missing conflicts with casks
2 parents ac2202a + 8dd2945 commit 8eb91e6

23 files changed

+51
-0
lines changed

Formula/a/aide.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class Aide < Formula
3636
uses_from_macos "curl"
3737
uses_from_macos "zlib"
3838

39+
conflicts_with cask: "aide-app"
40+
3941
def install
4042
# use sdk's strnstr instead
4143
ENV.append_to_cflags "-DHAVE_STRNSTR"

Formula/c/cmake.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class Cmake < Formula
3333
depends_on "openssl@3"
3434
end
3535

36+
conflicts_with cask: "cmake"
37+
3638
# The completions were removed because of problems with system bash
3739

3840
# The `with-qt` GUI option was removed due to circular dependencies if

Formula/c/cocoapods.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class Cocoapods < Formula
2020
depends_on "ruby"
2121
uses_from_macos "libffi", since: :catalina
2222

23+
conflicts_with cask: "cocoapods", because: "both install `pod` binaries"
24+
2325
def install
2426
ENV["GEM_HOME"] = libexec
2527
system "gem", "build", "cocoapods.gemspec"

Formula/d/docker-completion.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class DockerCompletion < Formula
1414
sha256 cellar: :any_skip_relocation, all: "ab2d16d72a1a2b17b8149581cc8fbc7d6b4dcd65451a8d8a28ba32024248c4ce"
1515
end
1616

17+
conflicts_with cask: "docker"
18+
1719
# These used to also be provided by the `docker` formula.
1820
link_overwrite "etc/bash_completion.d/docker"
1921
link_overwrite "share/fish/vendor_completions.d/docker.fish"

Formula/d/docker-compose.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class DockerCompose < Formula
2525

2626
depends_on "go" => :build
2727

28+
conflicts_with cask: "docker"
29+
2830
def install
2931
ldflags = %W[
3032
-s -w

Formula/d/docker-credential-helper-ecr.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class DockerCredentialHelperEcr < Formula
2323

2424
depends_on "go" => :build
2525

26+
conflicts_with cask: "docker"
27+
2628
def install
2729
(buildpath/"GITCOMMIT_SHA").write tap.user
2830
system "make", "build"

Formula/d/docker.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class Docker < Formula
2525
depends_on "go-md2man" => :build
2626
depends_on "docker-completion"
2727

28+
conflicts_with cask: "docker"
29+
2830
def install
2931
# TODO: Drop GOPATH when merged/released: https://github.com/docker/cli/pull/4116
3032
ENV["GOPATH"] = buildpath

Formula/d/dotnet.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ class Dotnet < Formula
5454
depends_on "lttng-ust"
5555
end
5656

57+
conflicts_with cask: "dotnet"
58+
conflicts_with cask: "dotnet-sdk"
59+
conflicts_with cask: "dotnet-sdk@preview"
60+
conflicts_with cask: "dotnet@preview"
61+
5762
def install
5863
if OS.mac?
5964
# Need GNU grep (Perl regexp support) to use release manifest rather than git repo

Formula/e/emacs.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class Emacs < Formula
3737
depends_on "jpeg-turbo"
3838
end
3939

40+
conflicts_with cask: "emacs"
41+
conflicts_with cask: "emacs@nightly"
42+
4043
def install
4144
# Mojave uses the Catalina SDK which causes issues like
4245
# https://github.com/Homebrew/homebrew-core/issues/46393

Formula/f/fpc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class Fpc < Formula
3636
end
3737

3838
conflicts_with "px", because: "both install `ptop` binaries"
39+
conflicts_with cask: "fpc-laz"
3940

4041
resource "bootstrap" do
4142
on_macos do

0 commit comments

Comments
 (0)