Upon setting up Go App Engine on macOS, users may face difficulties determining the appropriate location for the google-cloud-sdk path, leading to errors such as "cannot download, /usr/local/google-cloud-sdk/... is a GOROOT, not a GOPATH."
Google-Cloud-SDK should not be placed in $GOROOT or $GOPATH. Instead, unpack it into your $HOME directory and run the installer. Add it to your $PATH by adding the following line to your .bash_profile:
export PATH=$HOME/google-cloud-sdk:$PATH
Obtain the GoLang SDK with gcloud components install app-engine-go.
The above is the detailed content of Where Should I Install the Google Cloud SDK and What Should My GOPATH Be?. For more information, please follow other related articles on the PHP Chinese website!