Merge pull request #991 from aculich/fix-apple-silicon-goroot-path

Fix GOROOT path for Apple Silicon Macs
This commit is contained in:
Eugen Eisler 2024-09-23 21:35:35 +02:00 committed by GitHub
commit 70aac4e5f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,9 +137,9 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
for Apple Silicon based macs for Apple Silicon based macs
```bash ```bash
# Golang environment variables # Golang environment variables
export GOROOT=/opt/homebrew/bin/go export GOROOT=$(brew --prefix go)/libexec
export GOPATH=$HOME/go export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH: export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
``` ```
### Setup ### Setup