A
A
AleDv2020-09-13 12:49:03
go
AleDv, 2020-09-13 12:49:03

How to solve deployment error on Heroku bin/*-heroku?

Hello. There is a small project on Go. I'm trying to put it on Heroku and I get an error:

remote: Building source:
remote:
remote: -----> Go app detected
remote: -----> Fetching jq... done
remote: -----> Fetching stdlib.sh.v8... done
remote:  !!    
remote:  !!    'GOVERSION' isn't set, defaulting to 'go1.12.17'
remote:  !!    
remote:  !!    Run 'heroku config:set GOVERSION=goX.Y' to set the Go version to use
remote:  !!    for future builds
remote:  !!    
remote: -----> New Go Version, clearing old cache
remote: -----> Installing go1.12.17
remote: -----> Fetching go1.12.17.linux-amd64.tar.gz... done
remote: -----> Fetching errors-0.8.0.tar.gz... done
remote: -----> Fetching gb-0.4.4.tar.gz... done
remote: -----> Installing GB v0.4.4... done
remote: -----> Running: gb build -tags heroku
remote: bus
remote: bot
remote: -----> Post Compile Cleanup
remote: mv: cannot stat 'bin/*-heroku': No such file or directory
remote:  !     Push rejected, failed to compile Go app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to transport-bot-k.
remote:


The structure of the project itself: 5f5deac5cdf71397002205.png

Which bin folder he wants to move and where is unclear. In the repository for the example go - applications, too, I did not notice any bin folders.

What am I doing wrong and how to finally deploy the project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2020-09-13
@2ord

If src is at the root of the project, then Go's buildpack doesn't know how to build the project. Depending on what is used to check dependencies, certain tools are used during the build.
Additionally, the project root is missing a Procfile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question