raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.02k stars 2.75k forks source link

[Brew] Wrong version of brew detected #13049

Open an-intake opened 2 weeks ago

an-intake commented 2 weeks ago

Extension

https://www.raycast.com/nhojb/brew

Raycast Version

1.77

macOS Version

sonoma 14.5

Description

Hi, i don't think this is strictly a bug but i'm having issues with the application that i would like to resolve since i find it very useful. I have both versions of brew installed (x86 - arm ) since i need both but the x86 version is somehow used as default in the terminal command given by the application. This made a mess since i just recently found out that 3/4 of the stuff i downloaded were running trough rosetta. Yes the brew path is correct and the default in the terminal is arm. I uninstalled and reinstalled while also wiping the x86 brew but i still face the same issue. Is there a way to change the command issued by the application? What may have i done incorrectly? ( maybe having briefly x86 as default when first installing?)

Steps To Reproduce

not sure what to put here

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 2 weeks ago

Thank you for opening this issue!

🔔 @nhojb @Aayush9029 @mathieudutour @urwrstkn8mare @ashokbaruaakas @MillerApps @pernielsentikaer you might want to have a look.

💡 Author and Contributors commands The author and contributors of `nhojb/brew` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
nhojb commented 2 weeks ago

Yeah, we check for brew in the PATH first, then fallback to checking the current architecture and choosing /opt/homebrew or /usr/local as appropriate. I'm not sure if we should change it now since some users may be relying on their PATH environment 🤔

Two things you can do:

  1. Set a "Custom Brew Executable Path" in Settings -> Extensions -> Brew (see screenshot).
  2. Or you can add /opt/homebrew/bin as the first item in /etc/paths. Raycast will load /etc/paths at startup and add each item to the app's PATH environment.
Screenshot 2024-06-21 at 10 25 10
an-intake commented 4 days ago

Thank you for the explanation but i actually tried both methods and i still got the same issue. I'm no technician but i'm pretty sure i followed the PATH fix correctly and it did not change. Regarding the custom path i simply changed it to the default brew arm location correct? Definetly not sure of my raycast skills. Sorry for the delayed answer