gpt4 book ai didi

App Engine Flex environment Golang: cannot find module for path io/fs(App Engine Flex环境Golang:找不到路径io/f的模块)

翻译 作者:bug小助手 更新时间:2023-10-26 21:50:37 24 4
gpt4 key购买 nike



Every time I deployed a basic Go backend application to the App Engine Flexible environment I get the aforementioned issue.

每次我将一个基本的Go后端应用程序部署到App Engine灵活环境中时,我都会遇到上述问题。


runtime: go
env: flex

endpoints_api_service:
# The following values are to be replaced by information from the output of
# 'gcloud endpoints services deploy openapi-appengine.yaml' command.
name: YOUR-APP-ID.appspot.com
rollout_strategy: managed

manual_scaling:
instances: 1

I tried deploying once and again with a variation of the parameters in the yaml section. But any of them actually worked.

我一次又一次地尝试使用YAML部分中的各种参数进行部署。但它们中的任何一个实际上都奏效了。


更多回答
优秀答案推荐

Actually specifying a exact version of the Go runtime makes it work.

实际上,指定Go运行时的确切版本使其工作。


runtime_config:
operating_system: "ubuntu22"
runtime_version: "1.21"

更多回答

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