为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

Go
DIEA 2023-06-05 17:09:57
我正在尝试将 helloworld 应用程序部署到 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.这不是一个非常有用的错误消息,谷歌搜索到目前为止也没有帮助。我能做些什么来调试/修复这个问题?
查看完整描述

1 回答

?
catspeake

TA贡献1111条经验 获得超0个赞

App Engine 文档 Go 柔性环境

app.yaml 配置文件

运行时间:去

此设置是必需的。它是此应用程序使用的 App Engine 语言运行时的名称。指定Go,使用go,会默认支持最新的Go版本;或者,指定以下支持的发行版本之一:go1.10、go1.9 或 go1.8。


我想使用 go1.11,所以我将 app.yaml 更改为运行时:go111

错误:(gcloud.app.deploy) 您的应用程序不满足 [go111] 类型运行时的所有要求。请更正错误并重试。

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


阅读错误消息。

ERROR: runtime of type [go111].

阅读文档。

指定以下受支持的发行版本之一:go1.10

这将使 Go 1.11 go1.11

你用过go111并得到

ERROR: runtime of type [go111].

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


查看完整回答
反对 回复 2023-06-05
  • 1 回答
  • 0 关注
  • 97 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信