Managing Go
Herd serves Laravel for Go applications next to your PHP sites. Herd builds and runs these applications with your Go installation, so Go has to be installed on your Mac. You can install it and keep it up to date right from Herd. Go is optional. If you don’t work on Laravel for Go applications, you don’t need to install it.Installing Go
Open the settings, go to “Runtimes” and select “Go”. Click “Install” and Herd downloads the latest stable version of Go with its official installer from go.dev, checks the installer against its published checksum and installs it. The installation takes about a minute and needs about 240 MB of disk space. You can keep using Herd in the meantime.
/usr/local/go, where the official installer always installs it, and makes go available in your terminal. Your editor, your coding agents and Herd all use the same Go installation.
Herd installs Go with its background service, so you don’t have to enter your password. If the background service isn’t available, Herd opens the installer from go.dev instead, and you finish the installation in its window.
Using an existing Go installation
If Go is already installed on your Mac, Herd uses it and doesn’t install a second copy. Herd looks forgo in the following places, in this order, like your terminal does:
/opt/homebrew/bin/usr/local/bin/usr/local/go/bin
Updating Go
When you open the Go settings, Herd checks for a new stable release of Go and shows an “Update to …” button if there is one. Herd downloads the installer of the new release from go.dev and replaces the installed version with it.Uninstalling Go
Herd doesn’t uninstall Go, because other tools on your Mac may use it as well. If you want to remove a Go installation from the official installer, delete its folder and its entry in yourPATH: