I follow the instructions at https://cloud.google.com/appengine/docs/go/googlecloudstorageclient/download to easily transfer some code from the API now without outdated API files to the new cloud storage API.
I follow these steps:
I am running appengine v1.9.23, which is later than the required appengine v1.8.1.
My $ GOPATH is installed, so I skip step # 1.
Go to step # 2:
goapp get -u golang.org/x/oauth2
goapp get -u google.golang.org/cloud/storage
I am not developing a managed virtual machine, so I will skip step number 3.
Now, when I launch the application, I get:
go-app-builder: Failed parsing input: parser: bad import "syscall" in goapp/src/golang.org/x/net/internal/nettest/error_posix.go
What am I doing wrong?
Playback Steps
% mkdir $HOME/myapp
I am using a version that does not have static resources:
application: myapp version: alpha-001 runtime: go api_version: go1 handlers: - url: /.* script: _go_app
- Create a location for the Go source files.
% mkdir $HOME/myapp/go
- Set GOPATH to the location of your sources.
% export GOPATH=$HOME/myapp/go
% goapp get github.com/golang/example/appengine-hello
This command will load the sample application into the first path entry in GOPATH
% go get -u golang.org/x/oauth2
% go get -u google.golang.org/cloud/storage
- Trying to run your application
% goapp serve
You will see the following compilation error (without stack trace):
2015/12/23 10:37:07 go-app-builder: Failed parsing input: parser: bad import "syscall" in go/src/golang.org/x/net/ipv6/control_unix.go