deployment - Cannot deploy sample GOLang application to Heroku -


i tried deploying sample go application heroku listed here

but when run command:

git push heroku master

i following error:

counting objects: 28, done.

compressing objects: 100% (21/21), done. writing objects: 100% (28/28), 3.08 kib, done. total 28 (delta 6), reused 0 (delta 0)

! heroku push rejected, no cedar-supported app detected

to git@heroku.com:mysterious-refuge-1227.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'git@heroku.com:mysterious-refuge-1227.git'

the sample code might out-of-date created simple hello world go app same git push command got following error:

counting objects: 10, done. compressing objects: 100% (8/8), done. writing objects: 100% (10/10), 1.16 mib | 690 kib/s, done. total 10 (delta 1), reused 0 (delta 0)  -----> fetching custom git buildpack... done -----> go app detected -----> installing go 1.1... done        installing virtualenv... done        installing mercurial... done        installing bazaar... done -----> running: go -tags heroku ./... package echo/...: unrecognized import path "echo/..."  !     heroku push rejected, failed compile go app  git@heroku.com:evening-reef-1503.git  ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'git@heroku.com:evening-reef-1503.git' 

any ideas on how can resolve issue?

here system info:

  • golang version: go version go1.1 linux/386
  • kubuntu version: 12.10

i suspect original error because created application heroku create. you're using go, supported through buildpack, should create application heroku create -b https://github.com/kr/heroku-buildpack-go.git. believe demo app makes same mistake - my fork fixes - , i've submitted pull request too.


Comments