--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
gcloud -v
Google Cloud SDK 0.9.27
app 2014.07.15
app-engine-go-darwin-x86_64 1.9.7
app-engine-java 1.9.7
app-engine-python 1.9.7
app-engine-python-extras 1.9.6
bq 2.0.18
bq-nix 2.0.18
compute 2014.07.15
core 2014.07.15
core-nix 2014.06.17
dns 2014.04.30
gae-go 2014.07.15
gae-go-nix 2014.07.15
gae-python 2014.05.06
gae-python-launcher-mac 1.9.7
gcutil 1.16.3
gcutil-nix 1.16.1
gsutil 4.3
gsutil-nix 4.3
preview 2014.07.15
sql 2014.07.15
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsubscribe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
1.) Path to goapp missingAfter a fresh install, the path to goapp is not set, so goapp causes a command not found error.
#!/bin/bash
gcloud="$(which gcloud)" [ -L "$gcloud" ] && gcloud="$(readlink "$gcloud")" # works for regular and brew installs appdir="$(dirname "$(dirname "$gcloud")")" goapp="${appdir}/platform/google_appengine/goapp" python "$goapp" "$@"
You may additionally need to run these:
gcloud auth login
gcloud components install app-engine-go
#!/bin/bash
gcloud="$(which gcloud)"
[ -L "$gcloud" ] && gcloud="$(readlink "$gcloud")"
appdir="$(dirname "$(dirname "$gcloud")")"
goapp="${appdir}/platform/google_appengine/goapp"
if ! [ -f "$goapp" ]; then
echo "goapp is not in the Google Cloud SDK libraries." >&2
echo "Hint: try running this command:" >&2
echo "" >&2
echo " gcloud components install app-engine-go" >&2
fi
# On 2018-03-01, Homebrew renamed python3 to python, breaking scripts that expected
# python to be 2.7. Make sure we are using Python 2.
if [[ "$(python --version 2>&1)" == *' 2.7'* ]]; then
PYTHON=python
elif type python2.7 &>/dev/null; then
PYTHON=python2.7
elif type python2 &>/dev/null; then
PYTHON=python2
elif [[ "$(/usr/local/opt/python@2/bin/python --version 2>&1)" == *' 2.7'* ]]; then
PYTHON=/usr/local/opt/python@2/bin/python
elif [[ "$(/usr/bin/python --version 2>&1)" == *' 2.7'* ]]; then
PYTHON=/usr/bin/python
else
echo "could not find Python 2.7" >&2
exit 1
fi
"$PYTHON" "$goapp" "$@"