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

@ianlancetaylor ianlancetaylor commented Jun 9, 2015

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

This comment has been minimized.

Copy link
Member

@alexbrainman alexbrainman commented Jun 9, 2015

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

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

Alex

@alexbrainman

This comment has been minimized.

Copy link
Member

@alexbrainman alexbrainman commented Jun 10, 2015

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

Alex

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor Author

@ianlancetaylor ianlancetaylor commented Jun 10, 2015

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.