golang icon indicating copy to clipboard operation
golang copied to clipboard

Build fails when application has a subfolder named "app" (using .godir)

Open hansrodtang opened this issue 12 years ago • 4 comments

My build failed because it seems to try to overwrite a subfolder in my project named /app with the output binary.

Output:

Step onbuild-2 : RUN go-wrapper install
 ---> Running in 96a4e82eb692
ln: `/go/src/github.com/hansrodtang/digitalmagasinet/app': cannot overwrite directory

Dockerfile:

FROM golang:1.3.3-onbuild
CMD ["./digitalmagasinet"]

.godir :

github.com/hansrodtang/digitalmagasinet

hansrodtang avatar Oct 08 '14 22:10 hansrodtang

Thanks @hansrodtang! I think this is a case of the .godir symlink logic in go-wrapper being a little over-aggressive, but definitely should be fixable (and absolutely ought to be fixed).

tianon avatar Oct 08 '14 22:10 tianon

We'll get this change into the Official Builds later today and let you know once they are on the Docker Hub.

yosifkit avatar Oct 10 '14 19:10 yosifkit

The fix should be up now; give it a try and let us know how it goes.

yosifkit avatar Oct 13 '14 22:10 yosifkit

Works fine now!

hansrodtang avatar Oct 18 '14 00:10 hansrodtang