From the last material that I can read, and also based on documentation on some APIs (for example, the Datastore Go API , m is supposed to be used google.golang.org/appengine, etc. instead of the old paths appengine/.... However, when I try to deploy using the gcloud application deployment, I get the following error:
The deployment contains files that cannot be compiled: compilation failed:
2016/01/14 14:32:43 go-app-builder: build timing: 2Γ6g (113ms total), 0Γ6l (0 total)
2016/01/14 14:32:43 go-app-builder: failed running 6g: exit status 1
server/alexa.go:10: can't find import: "golang.org/x/net/context"
The package golang.org/x/net/contextsupposedly replaces the old appengine/contextone, but it does not appear on the deployment server GOROOT.
I tried to include all the dependencies and their dependencies in my package repo, but this only led me to this obscure error (the directory he complains about actually exists):
The deployment contains files that cannot be compiled: compilation failed:
2016/01/14 14:27:04 go-app-builder: build timing: 18Γ6g (1.819s total), 0Γ6l (0 total)
2016/01/14 14:27:04 go-app-builder: failed running 6g: exit status 1
github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go:27: can't find import: "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
I misunderstood the documentation and should I use only old packages?
source
share