-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: failed to remove work dir #36000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is there a name similar to |
|
@zhangyoufu I use gcc as suggested at and everything works for me:
I suggest you change your gcc. Would that work for you? Alex |
@alexbrainman Thank you for your suggestion. I didn't know that musl is also available on Windows. I do have a working toolchain.
But I still expect golang could change Ref: |
@zhangyoufu --
musl is not available for Windows; the infrastructure I use to build the musl toolchains makes it trivial to also build and test Windows toolchains of the same GCC version, so I upload those to musl.cc as well. Side note: they were updated yesterday to a newer GCC snapshot and MinGW commit. |
Sorry, but I am not convinced that using NUL as gcc output file is a problem. I am also not convinced that Alex |
Feeding |
@zhangyoufu Go doesn't support Cygwin. Cygwin tools use paths that Windows don't support. Windows Go port only works with normal Windows paths. Alex |
That's fair.
I would call Quote from MSDN document here
It's insane that any program ported to Windows should check a bunch of DOS device names before they can happily use that path. |
If you meant Win32 API, then, yes, that is Go on Windows support. Alex |
Change https://golang.org/cl/233977 mentions this issue: |
What version of Go are you using (
go version
)?What did you do?
What did you expect to see?
go env
exit normallyWhat did you see instead?
go env
left a file with nameNUL
under some temporary directory, and failed to remove it.The NUL file comes from here:
go/src/cmd/go/internal/work/exec.go
Lines 2362 to 2368 in 2ac1ca9
I can reproduce this issue with https://packages.msys2.org/base/gcc.
I cannot reproduce this issue with https://packages.msys2.org/package/mingw-w64-x86_64-gcc.
Different toolchains shows different behaviors when they deal with special file names.
The text was updated successfully, but these errors were encountered: