Graphaello
Graphaello copied to clipboard
Support for M1 installations of brew
On Apple Silicon brew installs to /opt/homebrew/bin/brew by default. This causes fetchInstalledVersion() to fail.
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
as a quick workaround:
$ sudo mkdir /usr/local/bin $ cd /usr/local/bin $ sudo ln -s /opt/homebrew/bin/brew brew