Skip to content

Commit ca05bec

Browse files
authored
Merge pull request #253019 from Homebrew/corepack-conflicts
corepack,hadoop,pnpm,yarn: add `conflicts_with`
2 parents 00d4f38 + 35e4e40 commit ca05bec

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

Formula/c/corepack.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ class Corepack < Formula
1616

1717
depends_on "node"
1818

19+
conflicts_with "hadoop", because: "both install `yarn` binaries"
20+
conflicts_with "pnpm", because: "both install `pnpm` and `pnpx` binaries"
21+
conflicts_with "yarn", because: "both install `yarn` and `yarnpkg` binaries"
22+
1923
def install
2024
system "npm", "install", *std_npm_args
2125
bin.install_symlink Dir["#{libexec}/bin/*"]

Formula/h/hadoop.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Hadoop < Formula
1818
# WARNING: Check https://cwiki.apache.org/confluence/display/HADOOP/Hadoop+Java+Versions before updating JDK version
1919
depends_on "openjdk@11"
2020

21+
conflicts_with "corepack", because: "both install `yarn` binaries"
2122
conflicts_with "yarn", because: "both install `yarn` binaries"
2223

2324
def install

Formula/p/pnpm.rb

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

2424
depends_on "node" => [:build, :test]
2525

26+
conflicts_with "corepack", because: "both install `pnpm` and `pnpx` binaries"
27+
2628
def install
2729
system "npm", "install", *std_npm_args
2830
bin.install_symlink libexec.glob("bin/*")

Formula/y/yarn.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Yarn < Formula
1616

1717
depends_on "node" => :test
1818

19+
conflicts_with "corepack", because: "both install `yarn` and `yarnpkg` binaries"
1920
conflicts_with "hadoop", because: "both install `yarn` binaries"
2021

2122
def install

0 commit comments

Comments
 (0)