I had a strange problem which I solved but it might be of help to others.
My Golang project has several folders. One of those is bin/* with different binaries. On deploying the project I kept getting the error go install <project>/bin/app: build output "/tmp/build/bin/app" already exists and is a directory.
Cause:
The buildpack uses <project> + /bin already. So when installing bin/app it finds that folder indeed already exists.
Solution:
Simply renaming my <project>/bin folder to <project>/cmd solved the problem.
I had a strange problem which I solved but it might be of help to others.
My Golang project has several folders. One of those is bin/* with different binaries. On deploying the project I kept getting the error
go install <project>/bin/app: build output "/tmp/build/bin/app" already exists and is a directory.Cause:
The buildpack uses
<project> + /binalready. So when installing bin/app it finds that folder indeed already exists.Solution:
Simply renaming my
<project>/binfolder to<project>/cmdsolved the problem.