Skip to content

Update depends_on macos#1297

Open
xtqqczze wants to merge 1 commit into
PowerShell:masterfrom
xtqqczze:dependson-macos
Open

Update depends_on macos#1297
xtqqczze wants to merge 1 commit into
PowerShell:masterfrom
xtqqczze:dependson-macos

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Sep 24, 2025

Copy link
Copy Markdown

Update macOS depends_on to reflect .NET’s supported OS at each release’s ship date.

@xtqqczze xtqqczze changed the title Update depends_on macos Update depends_on macos Sep 24, 2025
@xtqqczze xtqqczze marked this pull request as ready for review September 24, 2025 18:15
Comment thread Formula/powershell-lts.rb Outdated
@ZhongRuoyu

Copy link
Copy Markdown

Please note that depends_on macos: :high_sierra (and any macOS version below Catalina) will be deprecated in the next Homebrew release, so it will no longer be possible to install these formulae without bumping the macOS requirement (which I see this PR is doing):

$ brew install powershell/tap/powershell
Error: powershell/tap/powershell: 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

@kevindashton

kevindashton commented Dec 17, 2025

Copy link
Copy Markdown

@andyleejordan @TravisEz13 Can we get the final review and get this merged? These constant deprecation warnings on any brew command have me close to uninstalling pwsh.

@bitcrazed

Copy link
Copy Markdown

Hi, @TravisEz13 and/or @andyleejordan Any chance one of you could review & approve this PR ... pretty please? 😜

@dskeller

Copy link
Copy Markdown

please approve and integrate. this breaks update functionality in the homebrew implementation of powershell.

@Makishima

Copy link
Copy Markdown

Please approve it, @TravisEz13 and @andyleejordan :)

@xtqqczze

Copy link
Copy Markdown
Author

I’ve pushed changes to use the minimum supported OS at the time of the first .NET RC to avoid unnecessary warnings.

@xIceFox

xIceFox commented Feb 16, 2026

Copy link
Copy Markdown

Could this be reapproved please? @TravisEz13 @andyleejordan

@rosset

rosset commented Feb 17, 2026

Copy link
Copy Markdown

any ETA on this ? it's still an annoing issue

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

Filipes-MacBook-Pro:homebrew-tap rosset$ git remote -v
origin https://github.com/powershell/homebrew-tap (fetch)
origin https://github.com/powershell/homebrew-tap (push)

Filipes-MacBook-Pro:homebrew-tap rosset$ git pull
git Already up to date.

Filipes-MacBook-Pro:homebrew-tap rosset$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Filipes-MacBook-Pro:homebrew-tap rosset$

@ZhongRuoyu

ZhongRuoyu commented Mar 11, 2026

Copy link
Copy Markdown

People subscribed to this PR: you may be interested to know that powershell has just become an official formula in the homebrew/core tap following merge of Homebrew/homebrew-core#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 Homebrew/homebrew-core#197546).

@rosset

rosset commented Mar 11, 2026

Copy link
Copy Markdown

People subscribed to this PR: you may be interested to know that powershell has just become an official formula in the homebrew/core tap following merge of Homebrew/homebrew-core#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 Homebrew/homebrew-core#197546).

great, it did the trick for MBP4 with Tahoe, powershell moved from 7.5.2 to 7.5.4 with dotnet@9

it's also safe to run 'brew remove dotnet@8' if its not in use anymore.

@beeradmoore

Copy link
Copy Markdown

Posting incase anyone else has the same issue

If you manage dotnet yourself and not via brew this will still install dotnet as a dependency and (at least in my case) your other SDKs will disappear. dotnet --list-sdks shows limited.

I think you may be able to unlink dotnet@9 and that will be fine. I just uninstalled and installed powershell via dotnet itself as I have a bunch of other dev tools there as well.

@xtqqczze

Copy link
Copy Markdown
Author

Posting incase anyone else has the same issue

If you manage dotnet yourself and not via brew this will still install dotnet as a dependency and (at least in my case) your other SDKs will disappear. dotnet --list-sdks shows limited.

I think you may be able to unlink dotnet@9 and that will be fine. I just uninstalled and installed powershell via dotnet itself as I have a bunch of other dev tools there as well.

This behavior is a known Homebrew issue, see Homebrew/homebrew-core#275366, Homebrew/homebrew-core#275368

@mmetzlerwbgames

mmetzlerwbgames commented Apr 2, 2026

Copy link
Copy Markdown

Posting incase anyone else has the same issue

If you manage dotnet yourself and not via brew this will still install dotnet as a dependency and (at least in my case) your other SDKs will disappear. dotnet --list-sdks shows limited.

I think you may be able to unlink dotnet@9 and that will be fine. I just uninstalled and installed powershell via dotnet itself as I have a bunch of other dev tools there as well.

This seems to have broken when Powershell was moved up to 9.6.0 and its dependency was changed from dotnet@9 to dotnet (.Net 10). dotnet@9 is keg_only where as dotnet isn't.

Is there a dotnet@10 that is keg_only?

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.