gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 02:35:42 24 4
gpt4 key购买 nike

我正在尝试将 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.

这不是一个非常有用的错误消息,到目前为止谷歌搜索也没有帮助。我该怎么做才能调试/修复此问题?

最佳答案

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 会怎样?

关于go - 使用 go111 将 helloworld 部署到灵活的 App Engine 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54499650/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com