Skip to content

Deprecate tap formulas now that PowerShell is in Homebrew Core#1348

Open
andyleejordan wants to merge 3 commits into
masterfrom
andyleejordan/deprecate-formulas
Open

Deprecate tap formulas now that PowerShell is in Homebrew Core#1348
andyleejordan wants to merge 3 commits into
masterfrom
andyleejordan/deprecate-formulas

Conversation

@andyleejordan

@andyleejordan andyleejordan commented Jun 18, 2026

Copy link
Copy Markdown
Member

Follow-up to #1347, which added the README deprecation notice. This adds the matching deprecate! declarations to the formulas themselves and removes the formula CI ahead of archiving the repo.

PowerShell is now published to Homebrew Core as the community-maintained powershell formula (Homebrew/homebrew-core#268901), so the Homebrew project itself now maintains a formula in our place — we were subsumed, but in a good way.

Changes

  • Add a deprecate! declaration (dated 2026-06-18) to powershell, powershell-lts, and powershell-preview.
    • powershell points at its direct Core replacement: "is now maintained by Homebrew Core as the powershell formula".
    • powershell-lts and powershell-preview use "is unmaintained now that PowerShell is published to Homebrew Core", since Core has no LTS or preview formula — their comments direct users to the stable powershell formula or an official PowerShell package.
  • powershell-daily is left as-is since it already has disable!, which supersedes deprecate!.
  • Remove the formula PR/cron workflows and their composite actions. They tested brew install against macOS versions the formulas no longer support (upstream depends_on macos: :high_sierra is disabled), so they can only fail now; scorecard.yml is the one workflow kept.

Anyone who runs brew install powershell/tap/powershell (or -lts/-preview) now gets a deprecation warning, e.g.:

Warning: powershell has been deprecated because it is now maintained by Homebrew Core as the powershell formula!

Notes

  • Chose deprecate! over disable! so brew install still warns rather than hard-erroring for anyone who hasn't migrated yet.
  • The custom because: strings satisfy Homebrew's DeprecateDisableReason cop (no leading it, no trailing punctuation) and pass brew style.

Closes #1342.

PowerShell is now published to Homebrew Core as the community-maintained
`powershell` formula (Homebrew/homebrew-core#268901), so the Homebrew
project itself maintains a formula in our place. We were subsumed, but in
a good way: there's no reason to keep pointing people at this broken,
unmaintained tap.

Add `deprecate!` to the three still-active formulas so anyone installing
via `powershell/tap/*` gets a warning steering them to `brew install
powershell`:

- `powershell`, `powershell-lts`, and `powershell-preview` get
  `deprecate! date: "2026-06-18", because: "is now maintained by Homebrew
  Core as the `powershell` formula"`
- `powershell-daily` is left alone since it's already `disable!`d, which
  supersedes `deprecate!`

I chose `deprecate!` over `disable!` so `brew install` still works (just
warns) and the install-and-test CI keeps passing. The custom `because:`
string satisfies Homebrew's `DeprecateDisableReason` cop (no leading `it`,
no trailing punctuation) and is verified with `brew style`.

Follow-up to #1347, which added the README deprecation notice.

Drafted by Copilot (Claude Opus 4.8).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The `powershell`, `powershell-lts`, and `powershell-preview` install/test
jobs were already failing: the formulas no longer build now that
`depends_on macos: :high_sierra` is disabled upstream (#1322, #1339,
#1341), and we just deprecated them in favor of Homebrew Core. There's
nothing left worth testing or auto-updating before the repo is archived,
so drop the formula CI rather than chase green checks.

- Delete the `PR-powershell{,-lts,-preview}.yml` pull-request workflows
- Delete the `cron-powershell{,-preview}.yml` auto-update workflows
- Delete the `composite/{prep,installAndTest,createPR}` actions they used

`scorecard.yml` is left in place since it's unrelated to formula CI and
still passes.

Drafted by Copilot (Claude Opus 4.8).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR deprecates the tap’s PowerShell formulas now that the stable powershell formula is available in Homebrew Core, and appears to simultaneously remove this tap’s CI/update automation workflows ahead of archiving.

Changes:

  • Add deprecate! declarations (dated 2026-06-18) to powershell, powershell-lts, and powershell-preview.
  • Remove multiple GitHub Actions workflows (PR + scheduled update) and the composite actions they depended on.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Formula/powershell.rb Adds deprecate! metadata for the stable formula.
Formula/powershell-lts.rb Adds deprecate! metadata for the LTS formula.
Formula/powershell-preview.rb Adds deprecate! metadata for the preview formula.
.github/workflows/PR-powershell.yml Deletes PR CI workflow for stable formula.
.github/workflows/PR-powershell-preview.yml Deletes PR CI workflow for preview formula.
.github/workflows/PR-powershell-lts.yml Deletes PR CI workflow for LTS formula.
.github/workflows/cron-powershell.yml Deletes scheduled auto-update workflow for stable formula.
.github/workflows/cron-powershell-preview.yml Deletes scheduled auto-update workflow for preview formula.
.github/workflows/composite/prep/action.yml Deletes shared composite “prep” action used by workflows.
.github/workflows/composite/installAndTest/action.yml Deletes shared composite install/test action used by workflows.
.github/workflows/composite/createPR/action.yml Deletes shared composite PR-creation action used by scheduled workflows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Formula/powershell-preview.rb Outdated
Comment thread Formula/powershell-lts.rb Outdated
Comment thread Formula/powershell.rb
Homebrew Core publishes only the stable `powershell` formula; it has no
LTS or preview equivalent. The previous `because:` text claimed these
formulas are "now maintained by Homebrew Core as the `powershell`
formula," which misleads `powershell-lts` and `powershell-preview` users
into expecting a matching Core formula that does not exist.

State instead that the tap is unmaintained now that PowerShell ships in
Core, and direct users in the comment to the stable formula or an
official PowerShell package. The stable `powershell.rb` wording is
accurate and is left unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@andyleejordan andyleejordan enabled auto-merge (squash) June 19, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Point to new Brew formula for PowerShell

2 participants