prototipando / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
1 stars 0 forks source link

gcloud preview app deploy for golang project can not find import in GOPATH #631

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
use the hello world gae example project, include any third package from github, 
 running goapp serve locally without error,  running appcfg.py can deploy 
successfully. But if we run gcloud preview app deploy, it failed to find the 
third party package downloaded in the GOPATH.

What is the expected output? What do you see instead?
Go based project compiled and deploy to GAE.
Instead, we get:
ERROR: (gcloud.preview.app.deploy) Error Response: [9] Deployment contains 
files that cannot be compiled: Compile failed:
20

What is the output of 'gcloud info'?
Google Cloud SDK [99.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.6 (default, Jan  7 2014, 18:34:52)  [GCC 4.2.1 Compatible 
Apple LLVM 5.0 (clang-500.2.79)]]
Python Location: 
[/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Resourc
es/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]

Installation Root: 
[/opt/homebrew-cask/Caskroom/google-cloud-sdk/latest/google-cloud-sdk]
Additional Repositories:
  https://storage.googleapis.com/datasynth_gcloud/components-2.json
Installed Components:
  core: [2016.02.26]
  datasynth-eap: [2016.01.14]
  core-nix: [2016.02.05]
  kubectl: []
  gcloud: []
  gsutil-nix: [4.15]
  beta: [2016.01.12]
  gsutil: [4.17]
  bq: [2.0.18]
  alpha: [2016.01.12]
  bq-nix: [2.0.18]
  kubectl-darwin-x86_64: [1.1.7]
System PATH: 
[/Users/ruiyang/.nvm/versions/node/v5.6.0/bin:/Users/ruiyang/App/go_appengine:/U
sers/ruiyang/Ascend.io/godep/bin:/usr/local/opt/go/libexec/bin:/usr/local/bin:/u
sr/local/sbin:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
/opt/X11/bin:/usr/local/go/bin]
Cloud SDK on PATH: [False]

WARNING: There are old versions of the Google Cloud Platform tools on your 
system PATH.
  /Users/ruiyang/App/go_appengine/dev_appserver.py

Installation Properties: 
[/opt/homebrew-cask/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/properties
]
User Config Directory: [/Users/ruiyang/.config/gcloud]
User Properties: [/Users/ruiyang/.config/gcloud/properties]

Account: [rui.yang@ascend.io]
Project: [ascend-io-api-sandbox]

Current Properties:
  [core]
    project: [ascend-io-api-sandbox]
    account: [rui.yang@ascend.io]
    disable_usage_reporting: [True]
  [app]
    suppress_change_warning: [true]
  [component_manager]
    additional_repositories: [https://storage.googleapis.com/datasynth_gcloud/components-2.json]

Logs Directory: [/Users/ruiyang/.config/gcloud/logs]
Last Log File: 
[/Users/ruiyang/.config/gcloud/logs/2016.03.07/11.40.42.093664.log]

Please provide any additional information below.

Original issue reported on code.google.com by rui.y...@ascend.io on 7 Mar 2016 at 7:44

GoogleCodeExporter commented 8 years ago

Original comment by vil...@google.com on 8 Mar 2016 at 3:49

GoogleCodeExporter commented 8 years ago
Thank you for the feedback. 

Looks like you need to use aedeploy to assemble all the go dependencies. Here 
is some relevant documentation: 
https://cloud.google.com/appengine/docs/managed-vms/go/hello-world#running_hello
_world_on_app_engine .

Original comment by vil...@google.com on 8 Mar 2016 at 3:49