From 5da056b87acdcf32290d7cd486e5543cef3b1d87 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 3 Sep 2024 21:00:59 +0100 Subject: [PATCH] update: add env variable info for Apple Silicon -Updated the readme with env variables for Apple Silicon based mac as the path for Brew installed apps is different there. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 07a3417..e7ff880 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ fabric --setup If everything works you are good to go, but you may need to set some environment variables in your `~/.bashrc` or `~/.zshrc` file. Here is an example of what you can add: +For Intel based macs ```bash # Golang environment variables export GOROOT=/usr/local/go @@ -122,6 +123,14 @@ export GOPATH=$HOME/go export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH: ``` +for Apple Silicon based macs +```bash +# Golang environment variables +export GOROOT=/opt/homebrew/bin/go +export GOPATH=$HOME/go +export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH: +``` + ### Migration If you have the Legacy (Python) version installed and want to migrate to the Go version, here's how you do it. It's basically two steps: 1) uninstall the Python version, and 2) install the Go version.