diff --git a/Formula/t/television.rb b/Formula/t/television.rb index 3c5d58289d5bb..97db9b752e28f 100644 --- a/Formula/t/television.rb +++ b/Formula/t/television.rb @@ -17,6 +17,8 @@ class Television < Formula depends_on "rust" => :build + conflicts_with "tidy-viewer", because: "both install `tv` binaries" + def install system "cargo", "install", *std_cargo_args end diff --git a/Formula/t/tidy-viewer.rb b/Formula/t/tidy-viewer.rb index 99d6528be403a..68e4935d9b526 100644 --- a/Formula/t/tidy-viewer.rb +++ b/Formula/t/tidy-viewer.rb @@ -27,6 +27,8 @@ class TidyViewer < Formula depends_on "rust" => :build + conflicts_with "television", because: "both install `tv` binaries" + def install system "cargo", "install", *std_cargo_args bin.install_symlink "tidy-viewer" => "tv"