Linked Questions

Popular Questions

I have the helloworld app from here with a couple of modifications.

  1. I've used logrus (to bring in dependency to an external lib)
  2. I've added a go.mod using go mod init
  3. I have checkout this code outside of my GOPATH.

Everything works on localhost. I'm able to see the hello message on localhost:8080. When I attempt to do a gcloud app deploy I get the following error:

staging for go1.11
Staging Flex app: failed analyzing /home/.../code/app-engine-gomod: cannot find package "" in any of:
    ($GOROOT not set)
    /home/.../go/src/ (from $GOPATH)
GOPATH: /home/.../go

I've tried with and without go mod vendor doesn't help. What am I doing wrong?

Related Questions