我正面临着在Bluemix中推送示例Go应用程序的问题。
我将解释我推动申请的步骤。
但是,这给出了以下错误。
-------> Buildpack version 1.7.5
file:///var/vcap/data/dea_next/admin_buildpacks/e57c0cd5-3b42-424d-ad32-b0bee17b
c1b0_a25a466217b64d5e4d47a6796be8ab23e7b7eeaf/dependencies/https___pivotal-build
packs.s3.amazonaws.com_concourse-binaries_godep_godep-v62-linux-x64.tgz
-----> Installing go1.6... done
Downloaded [file:///var/vcap/data/dea_next/admin_buildpacks/e57c0cd5-3b42-424d-a
d32-b0bee17bc1b0_a25a466217b64d5e4d47a6796be8ab23e7b7eeaf/dependencies/https___s
torage.googleapis.com_golang_go1.6.linux-amd64.tar.gz]
!
! Error: Cloud Foundry does not support the GB package manager
! We currently only support the 'Godep' package manager for go apps
! For support please file an issue: https://github.com/cloudfoundry/go- buildpack/issues
!
Staging failed: Buildpack compilation step failed
目录结构:
goapp2016/
bin/
godep.exe
myapp.exe
pkg/
windows_amd64/
github.com/
tools/
godep/
ziutek/
mymysql
src/
github.com/
ziutek/
myapp/
app.go
Godeps/
Godeps.json
vendor/
github.com/
ziutek/
manifest.yml
Procfile
我在这里遗漏了什么?
答案 0 :(得分:1)
可以在此处看到buildpack的编译文件:https://github.com/cloudfoundry/go-buildpack/blob/master/bin/compile
依赖关系工具选择从line 136开始,只要有Godeps / Godeps.json文件,buildpack就应该使用godeps而不是GB。你确定要从包含Godeps文件夹的文件夹中推送,而Godeps文件夹又包含Godeps.json文件吗?