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

Problems installing goapp #168

Closed
samtstern opened this issue Oct 23, 2018 · 6 comments
Closed

Problems installing goapp #168

samtstern opened this issue Oct 23, 2018 · 6 comments

Comments

@samtstern
Copy link

I had a pretty rough installation experience. This is on a brand new 2018 MacBook pro, I have not used any app engine tools on it before.

First I ran:

gcloud components install app-engine-go

Then I ran goapp ... command not found. So I did:

chmod +x ~/google-cloud-sdk/platform/google_appengine/goapp
export PATH=$PATH:$HOME/google-cloud-sdk/platform/google_appengine

That got it on my path and executable. Then running it:

$ goapp serve
Traceback (most recent call last):
  File "/Users/samstern/google-cloud-sdk/platform/google_appengine/goapp", line 136, in <module>
    goroot = GetGoRoot(os.environ['GOPATH'], sys.argv)
  File "/Users/samstern/google-cloud-sdk/platform/google_appengine/goapp", line 119, in GetGoRoot
    return os.path.join(SDK_BASE, goroots.GOROOTS[app_yaml.api_version])
KeyError: None

That's as far as I've got. Stuck at this point.

@samtstern
Copy link
Author

Update: last part was my fault, needed

api_version: go1

in the app.yaml

@sbuss
Copy link
Contributor

sbuss commented Oct 23, 2018

Glad you got it figured out!

We just released Go 1.11 on App Engine which no longer uses goapp. I recommend you use the new platform, it's much easier to use! https://cloud.google.com/appengine/docs/standard/go111/

goapp is now deprecated because you can do everything you need to do on Go 1.11 with just go build and gcloud app deploy.

@sbuss sbuss closed this as completed Oct 23, 2018
@samtstern
Copy link
Author

What about the equivalent of goapp serve @sbuss ?

@sbuss
Copy link
Contributor

sbuss commented Oct 23, 2018

If you're using google.golang.org/appengine and want the local emulators, use dev_appserver.py /path/to/app.yaml. dev_appserver.py should be on your path when you install the app engine gcloud component. It has superseded all functionality of goapp

@RoyalIcing
Copy link

What is the equivalent of goapp test? How do you testing datastore locally?

@sbuss
Copy link
Contributor

sbuss commented Jul 18, 2019 via email

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