Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: RemoveAll does not work on Windows when there are filename case collisions #11135
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.