使用 go111 将 helloworld 部署到灵活的 App Engine 失败

Deploying helloworld to app engine flexible with go111 fails

我正在尝试将 helloworld 应用程序(源代码 here)部署到 app engine flexible。当我在不对代码进行任何更改的情况下部署它时,一切正常。但是我想用go1.11,所以我把app.yaml改成了

runtime: go111    # changed from runtime: go

我收到错误:

Beginning deployment of service [default]...
Building and pushing image for service [default]
ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type [go111].  Please correct the errors and try again.

这不是一条非常有用的错误消息,到目前为止谷歌搜索也没有帮助。我该如何解决 debug/fix 这个问题?

App Engine Documentation Go Flexible Environment

app.yaml Configuration File

runtime: go

This setting is required. It is the name of the App Engine language runtime used by this application. To specify Go, use go, and it will default to the latest supported Go version; alternatively, specify one of the following supported release versions: go1.10, go1.9, or go1.8.


I want to use go1.11, so I changed the app.yaml to say runtime: go111

ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type [go111]. Please correct the errors and try again.

想一想。运行时类型是 go111 go1.11 还是 go11.1?


阅读错误信息。

ERROR: runtime of type [go111].

阅读文档。

specify one of the following supported release versions: go1.10

这将使 Go 1.11 go1.11

您使用了 go111 并获得了

ERROR: runtime of type [go111].

如果您按照文档中的说明使用 Go 1.11 的 go1.11 会怎样?