Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push rejected, failed to compile Go app. #415

Open
ebitogu opened this issue Jun 15, 2020 · 8 comments
Open

Push rejected, failed to compile Go app. #415

ebitogu opened this issue Jun 15, 2020 · 8 comments

Comments

@ebitogu
Copy link

ebitogu commented Jun 15, 2020

My src directory is in this format

src
   -launcher
        -main.go

where main.go has package main like this

package main

func main(){

}

Yet, whenever I do git push heroku master I get

Push rejected, failed to compile Go app.

Any ideas on how to resolve this?

@ghost
Copy link

ghost commented Jun 15, 2020

Remove the src directory and use go modules and you should be good.

@ebitogu
Copy link
Author

ebitogu commented Jun 16, 2020

I am using go modules already

@ghost
Copy link

ghost commented Jun 16, 2020

Where in the directory structure is the go.mod file ? It needs to be at the root of the repo.

@hansputera
Copy link

I've the same issue

@hansputera
Copy link

You can look at my repository

@GiancarlosIO
Copy link

Same here :(

@lorezi
Copy link

lorezi commented May 13, 2021

I have the same issue

@txbrown
Copy link

txbrown commented Jun 25, 2021

Same issue all of a sudden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@txbrown @GiancarlosIO @lorezi @hansputera @ebitogu and others