Skip to content

Error: go install <project>/bin/app: build output "/tmp/build/bin/app" already exists and is a directory [SOLVED] #588

Description

@Gys

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions