| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR adds support for detecting Homebrew-installed PowerShell on Apple Silicon by updating both the platform detection logic and related tests. Key changes include:
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/core/platform.test.ts | Adds test cases for Homebrew installation paths (stable, LTS, preview). |
| src/platform.ts | Introduces constants and functions to locate Homebrew installations on macOS. |
test/core/platform.test.ts:598
{ exePath: "/usr/local/bin/pwsh", displayName: "PowerShell (Homebrew)", supportsProperArguments: true }
test/core/platform.test.ts:604
{ exePath: "/usr/local/bin/pwsh-lts", displayName: "PowerShell LTS (Homebrew)", supportsProperArguments: true }
test/core/platform.test.ts:614
{ exePath: "/usr/local/bin/pwsh-preview", displayName: "PowerShell Preview (Homebrew)", supportsProperArguments: true }
Sorry, something went wrong.
|
Yet again bit by our platform tests sharing macOS and Linux. I'm blaming Copilot for that one. The paths in the tests were right I swear, and then they were changed... |
Sorry, something went wrong.
Since `/opt/homebrew` is now used instead of `/usr/local`.
| Back | FazBrowse Home | New Git URL |
Since /opt/homebrew is now used instead of /usr/local.
This annoyed me when setting up a new MacBook.