gogoogle-app-engineapp-engine-flexible

Newbe on Go - AppEngine - Deploy


I'm new using App Engine, and I would appreciate if someone can clarify this doubt:

How can I be sure that AppEngine in the cloud have the correct version of go I need to have in the cloud?

I have read some articles about installing and downloading the SDK for google on my local machine (and of course, I am able to install the version I need on my machine); but once I have generated my app in Go and I want to deploy it to App Engine in the cloud, how can I be sure Google infrastructure has the correct version?

I want to install Iris Web framework as part of the stack but it requires to go vers 1.14 or superior, Google App Engine standard only provides support for Google 1.11 and 1.12+ so I think I would need to go for the Google App Engine Flexible option, if that were the case, how can I be sure it has or support the Go version I need?... Or Is there some procedure to follow to install it ?

Thanks in advance for your support


Solution

  • With the Flexible environment you have the ability to pin a version rather than using the latest available/supported. In order to do that, you will have to specify in your app.yaml file the exact version you would like it to be:

    runtime: go1.14
    

    If you specify only runtime: go it will pull the latest release available for Go language (which seems to be 1.19).

    For more information, please refer to this documentation: https://cloud.google.com/appengine/docs/flexible/go/reference/app-yaml#general