Re:Build, test and deploy a Go application to Heroku
by pjvds on Thursday August 29, 2013 @08:52AM
(#6295501)
This is an interesting scenario. I've resolved this by running the entire build pipeline on wercker and only deploy the binary on Heroku by using the null buildpack. I'll write up a post on this in the coming days.
This is because the heroku buildpack for go has to `go get github.com/user/private-repo` the necessary packages. Public repos work fine for this, but private repos need credentials. There's a few reasons this isn't easy on Heroku.
I ended up working around it[1] but am still not happy with the security implications.
[1] https://github.com/kr/heroku-buildpack-go/issues/17#issuecom...