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

Fixed #778: Removing and moving large sets of files fails on Windows #857

Merged
merged 1 commit into from
Jul 7, 2017

Conversation

mattfarina
Copy link
Member

For an example of the issue and status on Go itself see
golang/go#20841

When working with large file sets such as those in a large dependency
tree (e.g. thousands of files) functions such as os.RemoveAll and
os.Rename can fail on Windows and Windows Subsystem for Linux. The
system commands work without issue.

This change detects Windows and the WSL environments then drops
down to system commands to make these changes. On mac, linux, and
other the os package functions are still used.

For an example of the issue and status on Go itself see
golang/go#20841

When working with large file sets such as those in a large dependency
tree (e.g. thousands of files) functions such as os.RemoveAll and
os.Rename can fail on Windows and Windows Subsystem for Linux. The
system commands work without issue.

This change detects Windows and the WSL environments then drops
down to system commands to make these changes. On mac, linux, and
other the os package functions are still used.
@djensen47
Copy link

It works for me on Windows Subsytem for Linux.

I was never able to reproduce on Windows proper so somebody else will have to try that.

@kumarharsh
Copy link

kumarharsh commented Jul 5, 2017

It works for me on Windows proper 🎆. Have given this only one shot - but it worked without any error, whereas the glide.exe taken from releases didn't. I'll give it more tries later tomorrow. 👍

@mattfarina mattfarina merged commit 245cace into master Jul 7, 2017
@mattfarina mattfarina deleted the fix/windows-many-files branch July 7, 2017 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants