How should I use the context package?

60 views
Skip to first unread message

Marwan abdel moneim

unread,
Jan 23, 2018, 12:37:32 PM1/23/18
to google-appengine-go
I am using the old context package "golang.org/x/net/context"

but i get this error on deployment:
ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:
2018/01/23 09:26:34 go-app-builder: Failed parsing input: package "vendor/golang.org/x/net/trace" cannot import internal package "golang.org/x/net/internal/timeseries"

What I am doing wrong?

john.reu...@digiexam.se

unread,
Jan 25, 2018, 1:56:13 AM1/25/18
to google-appengine-go
Marwan, 

You are running into a known bug where gcloud app deploy can not deploy apps with vendoring.


Workaround is to use goapp or appcfg.py instead: https://cloud.google.com/appengine/docs/standard/go/tools/uploadinganapp

Marwan abdel moneim

unread,
Jan 27, 2018, 12:44:46 PM1/27/18
to google-appengine-go
Thanks, I solved it by modifying my app structure.
Reply all
Reply to author
Forward
0 new messages