去:在heroku上部署freegeoip

时间:2014-12-17 11:14:55

标签: heroku go dependency-management

在Heroku freegeoip应用上部署时,我遇到了错误。在部署之前,我做了godep save并且它将一些依赖项安装到项目的_workspace目录中

Counting objects: 1210, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (690/690), done.
Writing objects: 100% (1210/1210), 631.22 KiB, done.
Total 1210 (delta 472), reused 1022 (delta 467)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Fetching custom git buildpack... done
remote: -----> Go app detected
remote: -----> Installing go1.4... done
remote: -----> Running: godep go install -tags heroku ./...
remote: cmd/freegeoip/main.go:20:2: cannot find package "github.com/fiorix/go-redis/redis" in any of:
remote:     /app/tmp/cache/go1.4/go/src/github.com/fiorix/go-redis/redis (from $GOROOT)
remote:     /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/fiorix/freegeoip/Godeps/_workspace/src/github.com/fiorix/go-redis/redis (from $GOPATH)
remote:     /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/fiorix/go-redis/redis
remote: cmd/freegeoip/main.go:21:2: cannot find package "github.com/gorilla/context" in any of:
remote:     /app/tmp/cache/go1.4/go/src/github.com/gorilla/context (from $GOROOT)
remote:     /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/fiorix/freegeoip/Godeps/_workspace/src/github.com/gorilla/context (from $GOPATH)
remote:     /tmp/build_302ca8290b15fc58739db8af3cc335ac/.heroku/g/src/github.com/gorilla/context
remote: godep: go exit status 1
remote: 
remote:  !     Push rejected, failed to compile Go app
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to cryptic-temple-9401.
remote: 

我应该怎么做才能修复它?谢谢!

0 个答案:

没有答案