我有一个希望部署到Heroku的Go App
每当我在Go App上运行git push heroku master
时,都会收到以下错误消息:
remote: !!
remote: -----> New Go Version, clearing old cache
remote: -----> Installing go1.12.17
remote: -----> Fetching go1.12.17.linux-amd64.tar.gz... done
remote: -----> Determining packages to install
remote: ! Push rejected, failed to compile Go app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to appname.
remote:
To https://git.heroku.com/appname.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/appname.git'
我似乎找不到可能出问题的地方。但是我的main.go
文件在这样的子包中
src
launcher
main.go
现在在main.go
里面
package main //<-The main package is indicated here
func main(){
}
heroku是否可能因为子包中的内容而没有看到我的main.go
文件?