dongyong3223 2017-03-23 21:13
浏览 34

为golang和heroku安装鹅

I've tried 2 methods to include goose to my golang project and it fails during the heroku build. I first tried this method: https://bitbucket.org/liamstask/goose/

I added 2 packages to the vendor.json file:

    {
        "checksumSHA1": "rmNwGgFJAcDxUGF5yB/zqhQPxCA=",
        "path": "bitbucket.org/liamstask/goose/cmd/goose",
        "revision": "8488cc47d90c8a502b1c41a462a6d9cc8ee0a895",
        "revisionTime": "2015-01-15T23:40:39Z"
    },
    {
        "checksumSHA1": "jdqLDQw64kBjkU7LPK7C+Qwj7W8=",
        "path": "bitbucket.org/liamstask/goose/lib/goose",
        "revision": "8488cc47d90c8a502b1c41a462a6d9cc8ee0a895",
        "revisionTime": "2015-01-15T23:40:39Z"
    }

and got the error:

can't load package: package bitbucket.org/liamstask/goose/cmd/goose: cannot find package "bitbucket.org/liamstask/goose/cmd/goose" in any of:
/app/tmp/cache/go1.7.5/go/src/bitbucket.org/liamstask/goose/cmd/goose (from $GOROOT)
/tmp/tmp.Pqgwxz8KyN/.go/src/bitbucket.org/liamstask/goose/cmd/goose (from $GOPATH)
!     Push rejected, failed to compile Go app.

I then found these directions: https://bitbucket.org/liamstask/goose/issues/55/heroku-instructions-no-longer-works-on-go

and tried updating my vendor file to include:

        "install": [
        "./...",
        "bitbucket.org/liamstask/goose/cmd/goose"
    ]

I'm still getting the same error message above. Any thoughts?

edit: Here's the full error message:

-----> Go app detected
-----> Checking vendor/vendor.json file.
-----> Using go1.7.5
-----> Fetching any unsaved dependencies (govendor sync)
-----> Running: go install -v -tags heroku ./... vendor/bitbucket.org/liamstask/goose/‌​cmd/goose 
can't load package: package vendor/bitbucket.org/liamstask/goose/‌​cmd/goose: cannot find package "vendor/bitbucket.org/liamstask/goose/\u200c\u200bcmd/goose" in any of:
    /app/tmp/cache/go1.7.5/go/src/vendor/bitbucket.org/liamstask/goose/‌​cmd/goose (from $GOROOT)
    /tmp/tmp.IJd3qxVYqW/.go/src/vendor/bitbucket.org/liamstask/goose/‌​cmd/goose (from $GOPATH)
 !     Push rejected, failed to compile Go app.
 !     Push failed
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
    • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
    • ¥16 mybatis的代理对象无法通过@Autowired装填
    • ¥15 可见光定位matlab仿真
    • ¥15 arduino 四自由度机械臂
    • ¥15 wordpress 产品图片 GIF 没法显示
    • ¥15 求三国群英传pl国战时间的修改方法
    • ¥15 matlab代码代写,需写出详细代码,代价私
    • ¥15 ROS系统搭建请教(跨境电商用途)
    • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。