Tag Archives: martini

Heroku, golang and martini

Just a note to myself. When deploying go + martini project to Heroku, there was an error:


remote: -----> Running: godep go install -tags heroku ./...
remote: www.go:3:8: cannot find package "github.com/go-martini/martini" in any of:
remote: /app/tmp/cache/go1.4.2/go/src/github.com/go-martini/martini (from $GOROOT)
remote: /tmp/build_ea6105408e12a560374800681cccb8e2/.heroku/g/src/gggggg/Godeps/_workspace/src/github.com/go-martini/martini (from $GOPATH)
remote: /tmp/build_ea6105408e12a560374800681cccb8e2/.heroku/g/src/github.com/go-martini/martini
remote: godep: go exit status 1

To fix it I had to force Godeps/_workspace folder into git repository, since Heroku buildpack expects dependencies to be delivered with app code.