如何让Heroku检测GO buildpack

In attempting to deploy my own GO app using git push heroku master I get the error Push rejected, failed to detect set buildpack heroku/go

Because the error is quite specific about failure to detect a buildpack I tried manually setting it with the command heroku buildpacks:set heroku/go The response however was ! Thebuildpack heroku/go is already set on your app.

Despite this push attempts continue to produce the same error Push rejected, failed to detect set buildpack heroku/go

It seems like the error message is leading me astray, what else might be wrong? Following my research here, I made sure that there is a Procfile in the app folder and I was able to successfully follow all the steps for deploying the Heroku GO example beforehand.

According to the documentation, the go buildpack requires Godep in order to know how to build and deploy your app.

Do a godep save and commit that before pushing to Heroku.