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

fix(kernel): fast module loading fails on Windows (EPERM) #4212

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Aug 8, 2023

In #4181, a faster method to load modules was introduced: symlinking instead of recursing through the directory tree, mostly affecting the load times of large modules.

Since Windows Vista, non-Administrator users on Windows aren't allowed to create symlinks anymore, so this new loading method fails for users working in corporate Windows environments.

Catch the error and fall back to the slower copying method if that happens.

Fixes #4208.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

In #4181, a faster method to load
modules was introduced: symlinking instead of recursing through the
directory tree, mostly affecting the load times of large modules.

Since Windows Vista, non-Administrator users on Windows aren't allowed
to create symlinks anymore, so this new loading method fails for users
working in corporate Windows environments.

Catch the error and fall back to the slower copying method if that
happens.

Fixes #4208.
@sirrus233
Copy link
Contributor

Will this also address #4207 ?

@mergify
Copy link
Contributor

mergify bot commented Aug 8, 2023

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Aug 8, 2023
@mergify
Copy link
Contributor

mergify bot commented Aug 8, 2023

Merging (with squash)...

@mergify mergify bot merged commit fac6cbb into main Aug 8, 2023
@mergify mergify bot deleted the huijbers/windows-symlinks branch August 8, 2023 09:47
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Aug 8, 2023
@rix0rrr
Copy link
Contributor Author

rix0rrr commented Aug 8, 2023

Will this also address #4207 ?

@sirrus233 it will not. But thanks for bringing that to my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New feature from PR #4181 causes "EPERM: operation not permitted, symlink" on Windows
3 participants