-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to build app: Your app is not on your GOPATH, please move it there and try again. #8
Comments
app.yaml file isruntime: go111 handlers:
env_variables: |
@stephaneb20017 This is happening for me as well. Were you able to fix this? |
Same here. I raise a support ticket with Linux Academy |
Hi, Matt here from Linux Academy. We have a temporary fix in place to fix the app engine issues you have been experiencing that will update necessary files after they have been cloned from this github repo. Steps below:
|
Thanks Matt, Got it working with 2 minor adjustments: Everything else worked fine. Thanks, so much guys! Finally got the fully lab working as expected Thanks, |
MacBook:cloud stephane$ bash deploy.sh
Unable to find image 'golang:1.11' locally
1.11: Pulling from library/golang
4ae16bd47783: Pull complete
bbab4ec87ac4: Pull complete
2ea1f7804402: Pull complete
96465440c208: Pull complete
16a3d8aca6cd: Pull complete
3a62db25bdbe: Pull complete
8c47c6b16c60: Pull complete
Digest: sha256:e972c78795b22d5cfab02ac410aa2305fcc036319a7af51065d1af583cd3ec04
Status: Downloaded newer image for golang:1.11
Services to deploy:
descriptor: [/Users/stephane/Downloads/Lab-GCP/la-ace-find-seller-master/frontend/app/app.yaml]
source: [/Users/stephane/Downloads/Lab-GCP/la-ace-find-seller-master/frontend/app]
target project: [find-seller-app-dev-stephane]
target service: [default]
target version: [20191210t124827]
target url: [https://find-seller-app-dev-stephane.appspot.com]
Beginning deployment of service [default]...
Created .gcloudignore file. See
gcloud topic gcloudignore
for details.╔════════════════════════════════════════════════════════════╗
╠═ Uploading 1186 files to Google Cloud Storage ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: script field for handler '/.*' must be set to 'auto' for runtime go111.
MacBook:cloud stephane$ bash deploy.sh
Services to deploy:
descriptor: [/Users/stephane/Downloads/Lab-GCP/la-ace-find-seller-master/frontend/app/app.yaml]
source: [/Users/stephane/Downloads/Lab-GCP/la-ace-find-seller-master/frontend/app]
target project: [find-seller-app-dev-stephane]
target service: [default]
target version: [20191210t125437]
target url: [https://find-seller-app-dev-stephane.appspot.com]
Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 1 file to Google Cloud Storage ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build da0fd6ba-8484-4d1e-8ee0-9349be29c7bd status: FAILURE.
Error ID: A3D934AC.
Error type: BuildError.
Error message: 2019/12/10 03:56:16 Copying /workspace/_gopath/src/cloud.google.com to /tmp/staging646174384/srv/gopath/src/cloud.google.com
2019/12/10 03:56:17 Copying /workspace/_gopath/src/github.com to /tmp/staging646174384/srv/gopath/src/github.com
2019/12/10 03:56:17 Copying /workspace/_gopath/src/go.opencensus.io to /tmp/staging646174384/srv/gopath/src/go.opencensus.io
2019/12/10 03:56:17 Copying /workspace/_gopath/src/golang.org to /tmp/staging646174384/srv/gopath/src/golang.org
2019/12/10 03:56:17 Copying /workspace/_gopath/src/google.golang.org to /tmp/staging646174384/srv/gopath/src/google.golang.org
2019/12/10 03:56:17 Your app is not on your GOPATH, this build may fail.
2019/12/10 03:56:17 Building from Go source in /tmp/staging646174384/srv, with main package at ./...
2019/12/10 03:56:17 Building /tmp/staging646174384/srv, saving to /tmp/staging646174384/usr/local/bin/start
2019/12/10 03:56:19 Wrote build output to /builder/outputs/output
2019/12/10 03:56:19 Failed to build app: Your app is not on your GOPATH, please move it there and try again.
building app with command '[go build -o /tmp/staging646174384/usr/local/bin/start ./...]', env '[PATH=/go/bin:/usr/local/go/bin:/builder/google-cloud-sdk/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=e6a5de90920f HOME=/builder/home BUILDER_OUTPUT=/builder/outputs DEBIAN_FRONTEND=noninteractive GOROOT=/usr/local/go/ GOPATH=/go GOPATH=/tmp/staging646174384/srv/gopath]': err=exit status 1, out=go build: cannot use -o with multiple packages.
MacBook:cloud stephane$ echo $GOPATH
MacBook:cloud stephane$ go env GOPATH
/Users/stephane/go
The text was updated successfully, but these errors were encountered: