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

Add environment variable for --link-mode #3313

Closed
davidfritzsche opened this issue Apr 29, 2024 · 1 comment · Fixed by #3315
Closed

Add environment variable for --link-mode #3313

davidfritzsche opened this issue Apr 29, 2024 · 1 comment · Fixed by #3315
Labels
configuration Settings and such good first issue Good for newcomers

Comments

@davidfritzsche
Copy link

Hello,

thanks for you work on uv!

The outout of uv pip install --help (uv version 0.1.139) does not offer an environment variable for --link-mode. As I'm commonly editing installed Python packages (to debug something), it would be of great help if I could set the default link mode to clone instead of hardlink (I'm mostly working on Linux).

In general, from the documentation it is not really clear why the OS-specific defaults were chosen (probably performance?) and how uv protects itself against stupid old-school developers like me when they accidentially modify cached files installed with link mode hardlink.

PS: At $WORK my Windows-using colleagues are very much looking forward to use uv to speed up the creation of tox venvs to not take several minutes anymore. 🥇 for the astral team and all the contributors!

@zanieb zanieb added the configuration Settings and such label Apr 29, 2024
@zanieb
Copy link
Member

zanieb commented Apr 29, 2024

Thanks for the kind words!

This seems reasonable to add.

@zanieb zanieb added the good first issue Good for newcomers label Apr 29, 2024
zanieb pushed a commit that referenced this issue Apr 29, 2024
Resolves #3313

## Summary

Add a new env variable `UV_LINK_MODE` as alias for the cli argument
--link-mode.
Updated the README env variables section.

## Test Plan

Tested manually using `UV_LINK_MODE=hardlink cargo run -p uv pip install
flask`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Settings and such good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants