valyala / fasttemplate

Simple and fast template engine for Go
MIT License
844 stars 81 forks source link

Another GAE problem #8

Open stiks opened 6 years ago

stiks commented 6 years ago

Trying to deploy my code based on Echo Framework, and getting GAE error:

ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:
/work_dir/github.com/valyala/fasttemplate/template.go:12: can't find import: "github.com/valyala/bytebufferpool"
2017/12/22 23:38:09 go-app-builder: build timing: 15×compile (4.677s total), 0×link (0s total)
2017/12/22 23:38:09 go-app-builder: failed running compile: exit status 2

As far as I can see, GAE from Go 1.9.1 (I believe) stop reading subpackage vendors folder. When I delete /vendors folder in fasttemplate, build going through without issues.

YeongCheon commented 6 years ago

delete the folder src/github.com/valyala/fasttemplate/vendor and try deploy again.

stiks commented 6 years ago

Yeah, I did. But this is not a solution to my problem. I've changed CI to delete the folder it exists.

liflovs commented 6 years ago

Not simply remove folder. Had to delete it and run go get afterwards

mztnnrt commented 6 years ago

Thank you !! I soluted problem !! we get the same error, but in my case , i uninstalled & installed it.

$ rm-rf $GOPATH/src/github.com/valyala/fasttemplate/vendor`
$ go get install github.com/valyala/fasttemplate/vendor
$ gcloud app deploy  or $ gcloud app deploy passto/***.yaml

I did sucess deployng 🙂✨!!