corepack 0.34.2 (new formula)#252890
Conversation
|
CC @chenrui333 as you removed it back then. Looks like we need to add corepack back. |
There was a problem hiding this comment.
Pull Request Overview
This PR restores the corepack formula to Homebrew after it was previously removed. Since Node.js version 25 no longer ships with corepack bundled, it needs to be available as a standalone formula. The PR adds the new corepack formula and updates conflict declarations in related formulas (yarn, pnpm, and hadoop) to prevent binary name collisions.
Key Changes:
- Adds new
corepackformula (version 0.34.2) with proper dependencies and conflict declarations - Removes the
corepack → noderename mapping fromformula_renames.json - Updates yarn, pnpm, and hadoop formulas to declare conflicts with the new corepack formula
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
formula_renames.json |
Removes the corepack→node rename entry to allow corepack as a standalone formula |
Formula/c/corepack.rb |
New formula for corepack 0.34.2 with npm-based installation and conflict declarations |
Formula/y/yarn.rb |
Adds conflict with corepack due to shared yarn and yarnpkg binaries |
Formula/p/pnpm.rb |
Adds conflict with corepack due to shared pnpm and pnpx binaries |
Formula/h/hadoop.rb |
Adds conflict with corepack due to shared yarn binaries |
|
good callout, regarding the formula conflicts, they can come as a follow PR. |
|
🤖 An automated task has requested bottles to be published to this PR. Caution Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch. |
corepack was shipped by node at one point.
We removed the corepack formula to be consistent with that: #195770
Since node 25, corepack is not shipped anymore by node. See #252875
Thus, add the formula back ...
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where<formula>is the name of the formula you're submitting?brew test <formula>, where<formula>is the name of the formula you're submitting?brew audit --strict <formula>(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?relates to