fasttemplate icon indicating copy to clipboard operation
fasttemplate copied to clipboard

Another GAE problem

Open stiks opened this issue 7 years ago • 4 comments

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.

stiks avatar Dec 23 '17 07:12 stiks

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

YeongCheon avatar Feb 01 '18 16:02 YeongCheon

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

stiks avatar Feb 01 '18 16:02 stiks

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

liflovs avatar Feb 15 '18 13:02 liflovs

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 🙂✨!!

mztnnrt avatar Sep 12 '18 10:09 mztnnrt