Hey all,
I ran into an issue a couple of days ago with the buildpack:
https://github.com/kr/heroku-buildpack-go
referenced in Mark McGranaghan's great tutorial on getting started with Go
on heroku:
http://mmcgrana.github.com/2012/09/getting-started-with-go-on-heroku.html
The buildpack was copying over all of the contents $GOPATH to
$GOPATH/src/demoapp/ so I was ending up with paths that looked like:
$GOPATH/src/demoapp/src/demoapp
which was failing when trying to import a second package via something like
"demoapp/models" since all the source now lived a couple of levels deeper.
I changed the buildpack and got things working, but I was just trying to
clarify if the misunderstanding was mine or if there was an actual problem
with the buildpack.
My code is structured so that I have:
$GOPATH/bin
$GOPATH/pkg
$GOPATH/src
and then all source lives in
$GOPATH/src/demoapp
and my second package is in
$GOPATH/src/demoapp/models
I issued a pull request for the change I made here:
https://github.com/kr/heroku-buildpack-go/pull/13
Anyone else deploying Go on heroku run into something like this? Or have
tips?
Thanks,
-Eric
--