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

Support --link-mode=symlink #5208

Merged

Conversation

danielenricocahall
Copy link
Contributor

Summary

Addressing this issue by adding the capability for Symbolic linking as a link mode when installing or syncing dependencies.

Test Plan

@charliermarsh charliermarsh self-assigned this Jul 19, 2024
}

// Try to create a symlink, fallback to copying if it fails.
if let Err(err) = create_symlink(path, &out_path) {
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

@charliermarsh charliermarsh left a 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.

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality cli Related to the command line interface labels Jul 19, 2024
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@charliermarsh charliermarsh merged commit ef56df2 into astral-sh:main Jul 19, 2024
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants