Warn for Nix-managed Homebrew#22182
Merged
MikeMcQuaid merged 2 commits intomainfrom May 8, 2026
Merged
Conversation
- Direct Nix-managed crash reports to upstream Nix projects. - Treat `nix-homebrew` markers as Tier 3 for `brew doctor`. - Document Nix-managed Homebrew in `Support-Tiers.md`.
carlocab
approved these changes
May 8, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds explicit detection of Nix-managed Homebrew installs and adjusts diagnostics/error-reporting guidance to redirect users to the appropriate upstream Nix projects, while documenting this setup as Tier 3 support.
Changes:
- Add OS-level detection helpers for Nix-managed Homebrew (nix-homebrew + nix-darwin) and set
OS::ISSUES_URLaccordingly. - Introduce a
brew doctorcheck warning that Nix-managed installs are Tier 3 and pointing to upstream issue trackers. - Centralize issue-reporting text formatting and document Nix-managed installs in Support Tiers docs; add specs for the new OS/doctor behavior.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Library/Homebrew/utils/output.rb | Adds a shared issue_reporting_message formatter used by multiple error-reporting sites. |
| Library/Homebrew/os.rb | Detects Nix-managed installs and switches issue-reporting URLs to upstream Nix trackers. |
| Library/Homebrew/diagnostic.rb | Adds check_for_nix_homebrew to warn in brew doctor and point to Tier 3 + upstream tracker. |
| Library/Homebrew/exceptions.rb | Uses the shared issue-reporting formatter and redirects “official” issue guidance for Nix-managed installs. |
| Library/Homebrew/brew.rb | Uses the shared issue-reporting formatter and redirects internal-command crash reporting under Nix management. |
| Library/Homebrew/test/os_spec.rb | Adds unit tests for nix-homebrew/nix-darwin detection. |
| Library/Homebrew/test/diagnostic_checks_spec.rb | Adds coverage for the new Nix-related brew doctor check. |
| docs/Support-Tiers.md | Documents Nix-managed Homebrew installs as Tier 3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ZhongRuoyu
approved these changes
May 8, 2026
SMillerDev
approved these changes
May 8, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We've had a few issues in last wee while coming from Nix due to how they handle Homebrew in an unsupported fashion (e.g. #22174). We have no desire to intentionally break things there but we should make clear that users Homebrew through Nix should file their issues with the upstream instead.
nix-homebrewmarkers as Tier 3 forbrew doctor.Support-Tiers.md.brew lgtm(style, typechecking and tests) with your changes locally?OpenAI Codex 5.5 xhigh with local tweaking.