Monthly Archives: May 2015

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 "" in any of:
remote: /app/tmp/cache/go1.4.2/go/src/ (from $GOROOT)
remote: /tmp/build_ea6105408e12a560374800681cccb8e2/.heroku/g/src/gggggg/Godeps/_workspace/src/ (from $GOPATH)
remote: /tmp/build_ea6105408e12a560374800681cccb8e2/.heroku/g/src/
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.