Description
Installing powershell/tap/powershell via Homebrew fails with the following error:
Error: powershell/tap/powershell: Calling `depends_on macos: :high_sierra` is disabled! There is no replacement.
Please report this issue to the powershell/homebrew-tap tap (not Homebrew/* repositories):
/opt/homebrew/Library/Taps/powershell/homebrew-tap/Formula/powershell.rb:33
Steps to Reproduce
brew install powershell/tap/powershell
Root Cause
Line 33 of Formula/powershell.rb contains:
depends_on macos: :high_sierra
Homebrew has disabled the depends_on macos: DSL directive and now errors out when any formula uses it. The comment above the line references .NET Core 3.1 requiring High Sierra, but PowerShell 7.5.2 ships its own .NET runtime bundled in the tarball, so this constraint is likely no longer necessary.
Suggested Fix
Remove (or replace with a comment) line 33 in Formula/powershell.rb:
# .NET Core 3.1 requires High Sierra - https://docs.microsoft.com/en-us/dotnet/core/install/dependencies?pivots=os-macos&tabs=netcore31
depends_on macos: :high_sierra # <-- remove this line
Environment
- Homebrew version: latest (auto-updated during install attempt)
- macOS: arm64 (Apple Silicon)
- PowerShell formula version: 7.5.2
Description
Installing
powershell/tap/powershellvia Homebrew fails with the following error:Steps to Reproduce
Root Cause
Line 33 of
Formula/powershell.rbcontains:Homebrew has disabled the
depends_on macos:DSL directive and now errors out when any formula uses it. The comment above the line references .NET Core 3.1 requiring High Sierra, but PowerShell 7.5.2 ships its own .NET runtime bundled in the tarball, so this constraint is likely no longer necessary.Suggested Fix
Remove (or replace with a comment) line 33 in
Formula/powershell.rb:Environment