Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Engine Deploy can't find import: "github.com/dustin/gojson" #245

Open
kevflynn opened this issue Mar 25, 2018 · 3 comments
Open

App Engine Deploy can't find import: "github.com/dustin/gojson" #245

kevflynn opened this issue Mar 25, 2018 · 3 comments

Comments

@kevflynn
Copy link

kevflynn commented Mar 25, 2018

According to the docs, this is supports app engine deploys, but every single time I try to deploy with this package imported, I get this error:

ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:
/work_dir/github.com/ChimeraCoder/anaconda/vendor/github.com/dustin/go-jsonpointer/bytes.go:9: can't find import: "github.com/dustin/gojson"
/work_dir/github.com/ChimeraCoder/anaconda/backoff.go:6: can't find import: "github.com/azr/backoff"
2018/03/24 20:08:36 go-app-builder: build timing: 33×compile (23.42s total), 0×link (0s total)
2018/03/24 20:08:36 go-app-builder: failed running compile: exit status 2

it runs perfectly fine locally - only when i run gcloud app deploy, do i get this error

@kevflynn kevflynn changed the title App Engine Deploy App Engine Deploy can't find import: "github.com/dustin/gojson" Mar 25, 2018
@kevflynn
Copy link
Author

I deployed to compute engine instead, but leaving this open if it's important to others to get working in app engine

@ChimeraCoder
Copy link
Owner

I'm not particularly familiar with AppEngine, but I'm not sure why it's not able to find the import. The GOPATH shouldn't matter, since the file is in fact vendored.

Searching for the error messages, all I see are issues like this: https://stackoverflow.com/questions/43744415/appengine-cant-find-import-google-golang-org-appengine. Which command were you using to deploy?

@quiye
Copy link

quiye commented Jun 3, 2018

I had the same problem. However, it was solved by using below goapp deploy command instead of gcloud app deploy.

$ goapp deploy --application ${app_id} --version ${version}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants