-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Symlinks on Windows #177
Comments
@pitdicker Thanks for reaching out. :-)
Will this work for symlinking files? Some of the tests are already symlinking directories and that seems to work, but the test I killed was (I believe) trying to symlink a file. |
I am surprised to hear symlinking directories works, but don't have my computer nearby to check. The problem is that your Windows user account needs to have the What I did was: create a normal user account on my computer with the permission to create symlinks, so I can run all the test locally. For all the tests that use symlinks, just do as if the test passes if creating the symlink fails. See the |
I am going to close this. It's mildly annoying to skip a couple tests on Windows because of symlink issues, but I don't have the bandwidth to dig into fixing it properly. If someone were especially motivated to fix this for real in a way that permits tests to pass on AppVeyor, then I'd support that effort, but otherwise I'm fine with what we have for now. |
This is about the commit "Fix symlink test", which fails with access denied on Windows.
The standard library had the same problem, because Microsoft has made it very hard to create symlinks on Windows. I worked around it in this pull request.
The best option for testing is to use directory junctions, which you do have permission for to create.
But I never finished cleaning up the implementation of this in in the standard library...
The text was updated successfully, but these errors were encountered: