I\'ve been updating my entire go gae standard project to use go 1.11\'s modules.
Main directory structure
app.yaml app.go go.mod go
Set git credentials before deploying:
git config credential.helper '!f() { sleep 1; echo "username=${GIT_USER}\npassword=${GIT_PASSWORD}"; }; f' export GIT_USER=put_git_user_here export GIT_PASSWORD=put_git_password_here gcloud app deploy