Graphaello icon indicating copy to clipboard operation
Graphaello copied to clipboard

Support for M1 installations of brew

Open m4p opened this issue 3 years ago • 2 comments

On Apple Silicon brew installs to /opt/homebrew/bin/brew by default. This causes fetchInstalledVersion() to fail.

m4p avatar Aug 18 '21 13:08 m4p

Thanks for reporting this. I had no idea. I think we can use CLIKit's ExecutableFinder.find like we do here: https://github.com/nerdsupremacist/Graphaello/blob/develop/Sources/Graphaello/Processing/Pipeline/Component/Preparation/Implementation/BasicApolloProcessInstantiator.swift#L42

Then we don't have to hardcode any path or have special handling for Apple Sillicon

nerdsupremacist avatar Aug 18 '21 14:08 nerdsupremacist

as a quick workaround:

$ sudo mkdir /usr/local/bin $ cd /usr/local/bin $ sudo ln -s /opt/homebrew/bin/brew brew

RolandasRazma avatar Feb 22 '22 12:02 RolandasRazma