-
Notifications
You must be signed in to change notification settings - Fork 20
Formula broken: depends_on macos: :high_sierra is disabled in Homebrew #1341
Copy link
Copy link
Open
Description
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_sierraHomebrew 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 lineEnvironment
- Homebrew version: latest (auto-updated during install attempt)
- macOS: arm64 (Apple Silicon)
- PowerShell formula version: 7.5.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels