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