gpt4 book ai didi

go - 如何更改 IBM-Cloud cloudfoundry golang 应用程序版本?

转载 作者:行者123 更新时间:2023-12-01 22:10:33 26 4
gpt4 key购买 nike

当我运行命令 ibmcloud target --cf && ibmcloud cf restart appname ,它显示错误,似乎golang版本无效,但我无法更改它以指定没有root权限的版本,或者它可以通过创建容器例如是旧版本?

   Downloading app package...
Downloaded app package (20.8K)
-----> Go Buildpack version 1.9.16
**WARNING** [DEPRECATION WARNING]:
**WARNING** Please use AppDynamics extension buildpack for Golang Application instrumentation
**WARNING** for more details: https://docs.pivotal.io/partners/appdynamics/multibuildpack.html
-----> Checking Godeps/Godeps.json file
-----> Installing godep 80
Download [https://buildpacks.cloudfoundry.org/dependencies/godep/godep-v80-linux-x64-cflinuxfs3-b60ac947.tgz]
-----> Installing glide 0.13.3
Download [https://buildpacks.cloudfoundry.org/dependencies/glide/glide-v0.13.3-linux-x64-cflinuxfs3-ef07acb5.tgz]
-----> Installing dep 0.5.4
Download [https://buildpacks.cloudfoundry.org/dependencies/dep/dep-v0.5.4-linux-x64-cflinuxfs3-79b3ab9e.tgz]
**ERROR** Unable to determine Go version to install: no match found for 1.11.x in [1.13.14 1.13.15 1.14.6 1.14.7]
Failed to compile droplet: Failed to run all supply scripts: exit status 16
Exit status 223
Cell e0f8b881-1ded-45a7-a004-101d32dc7f6d stopping instance 3d1adec5-7f49-47a1-8005-e25e83521422
Cell e0f8b881-1ded-45a7-a004-101d32dc7f6d destroying container for instance 3d1adec5-7f49-47a1-8005-e25e83521422
Error staging application: App staging failed in the buildpack compile phase

最佳答案

您的环境似乎配置为使用较旧的 Golang 版本。并且在已安装的可用构建包中找不到该版本。您可以查看 list 和其他配置文件设置的版本。或者您可以使用 manifest attribute 切换到不同的构建包。或命令选项(参见 ibmcloud cf push --help 列出 buildpack 选项)。

关于go - 如何更改 IBM-Cloud cloudfoundry golang 应用程序版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64003027/

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