-
Notifications
You must be signed in to change notification settings - Fork 1.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
Support --link-mode=symlink
#5208
Support --link-mode=symlink
#5208
Conversation
} | ||
|
||
// Try to create a symlink, fallback to copying if it fails. | ||
if let Err(err) = create_symlink(path, &out_path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind adding the whole Attempt::UseCopyFallback
thing from hardlink_wheel_files
? It's helpful because if we detect that symlinks aren't supported, we basically stop trying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Relegated this function to just being a copy of the hardlink function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks great. I'll merge tomorrow when GitHub Actions is back online.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Summary
Addressing this issue by adding the capability for Symbolic linking as a link mode when installing or syncing dependencies.
Test Plan