Calling `depends_on macos: :high_sierra` is deprecated! There is no replacement.
Prerequisites
- [x] Write a descriptive title.
- [x] Make sure you are able to repro it on the latest version
- [x] Search the existing issues.
Steps to reproduce
when upgrading brew packages after updating my MacBook to Tahoe 26.2, I am getting the following error:
Warning: Calling `depends_on macos: :high_sierra` is deprecated! 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
Expected behavior
upgrade brew package
Actual behavior
doesn't upgrade and throw the error `Calling `depends_on macos: :high_sierra` is deprecated!`
Error details
Environment data
Name Value
---- -----
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS Darwin 25.2.0 Darwin Kernel Version 25.2.0: Tue…
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
7.5.2
Visuals
Steps to Reproduce
- On macOS Tahoe 26.2, open terminal
- Run
brew update && brew upgrade
yep, PR #1297 has been open for over 3 months now. Looks like it still needs codeowner approval.
Warning: Calling depends_on macos: :high_sierra is deprecated! 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-lts.rb:33
People subscribed to this issue: you may be interested to know that powershell has just become an official formula in the homebrew/core tap following merge of https://github.com/Homebrew/homebrew-core/pull/268901. If you want to install it, run brew update, and then brew uninstall powershell followed by brew install powershell. That should pick up the formula from the official homebrew/core tap.
Note that there are no bottles (pre-built binaries) for the powershell formula on Intel macOS due to dotnet@9 build issues (see https://github.com/Homebrew/homebrew-core/issues/197546).