golang
golang copied to clipboard
Build fails when application has a subfolder named "app" (using .godir)
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
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).
We'll get this change into the Official Builds later today and let you know once they are on the Docker Hub.
The fix should be up now; give it a try and let us know how it goes.
Works fine now!