Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: 'go build' fails when current directory and output directory are symlinks on Windows #27515
What version of Go are you using (
@rsc thanks for taking a look here. We were hoping that since this works on Linux and it has worked in previous versions on Windows, then it would continue to function the same way going forward. Windows symlinks can certainly by annoying at times (most times). All this being said, is there any chance that this will be fixed in a future go version?
We are working with an interface that expects the directory hierarchy outlined in my initial comment. Since this works on Linux, it will likely be difficult, if not impossible, for us to change the hierarchy. This interface is used in our automated deployment tooling for Kubernetes.
I have used https://play.golang.org/p/xYnM-XHKDve to find the commit that broke the test:
It looks like cmd/go fails when it calls os.MkdirAll, which calls os.Stat of
So this looks like a dup of #27225 or very similar.
If someone wants to have these 2 issues fixed, please, review https://golang.org/cl/134195 .