Navigation Menu

Skip to content
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

os: RemoveAll does not work on Windows when there are filename case collisions #11135

Closed
ianlancetaylor opened this issue Jun 9, 2015 · 3 comments

Comments

@ianlancetaylor
Copy link
Contributor

The test TestCaseCollisions in cmd/go/go_test.go in http://golang.org/cl/10809 fails on Windows. A call to os.RemoveAll of a directory fails with

remove C:\Users\WINGOP~1\AppData\Local\Temp\gotest203717703\src\example: The directory is not empty.

This directory holds subdirectories whose names are the same except for case: pkg and Pkg.

I will skip the test on Windows, but to recreate the problem, it should work to simply remove the skip.

@ianlancetaylor ianlancetaylor added this to the Go1.5Maybe milestone Jun 9, 2015
@alexbrainman
Copy link
Member

Skip the test. I will investigate what is going on.

FYI. You cannot remove executable file if it is still executing.

Alex

@alexbrainman
Copy link
Member

I think it is a bug in http://golang.org/cl/10809. I commented there.

Alex

@ianlancetaylor
Copy link
Contributor Author

Argh, thanks.

@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jun 11, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants