Issue
Running brew install powershell/tap/powershell fails with the following error:
Error: powershell/tap/powershell: Calling `depends_on macos: :high_sierra` is disabled! There is no replacement.
Steps to Reproduce
brew install powershell/tap/powershell
Root Cause
In Formula/powershell.rb at line 33:
depends_on macos: :high_sierra
Homebrew has disabled the depends_on macos: DSL (with no replacement). This causes the install to fail immediately.
Fix
Remove line 33 from Formula/powershell.rb:
depends_on macos: :high_sierra
PowerShell 7.5.2 targets .NET 9, which no longer requires a minimum macOS version constraint to be declared in the formula this way.
Environment
- Homebrew version: Homebrew 5.1.0
- macOS: 26.3.1
- Architecture: arm64
Issue
Running
brew install powershell/tap/powershellfails with the following error:Steps to Reproduce
Root Cause
In
Formula/powershell.rbat line 33:Homebrew has disabled the
depends_on macos:DSL (with no replacement). This causes the install to fail immediately.Fix
Remove line 33 from
Formula/powershell.rb:PowerShell 7.5.2 targets .NET 9, which no longer requires a minimum macOS version constraint to be declared in the formula this way.
Environment