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 to always use --active flag #11273

Open
albireox opened this issue Feb 6, 2025 · 2 comments
Open

Add environment variable to always use --active flag #11273

albireox opened this issue Feb 6, 2025 · 2 comments
Labels
configuration Settings and such enhancement New feature or improvement to existing functionality

Comments

@albireox
Copy link

albireox commented Feb 6, 2025

Summary

The new --active flag (#11189) is a great addition and I think it goes some way to allow uv and pyenv to work better together (see #6204).

Would it be possible to add a new environment variable to make that flag the default? For example, the PR suggested something like UV_PROJECT_ENVIRONMENT=ACTIVE but could also be UV_ACTIVE=1. Or maybe this already works? If so, it's not clear from the documentation.

Example

No response

@albireox albireox added the enhancement New feature or improvement to existing functionality label Feb 6, 2025
@zanieb zanieb added the configuration Settings and such label Feb 8, 2025
@zanieb
Copy link
Member

zanieb commented Feb 8, 2025

I posted some ideas in #11189 (comment) but did not add one yet. I'm not sure what name is best.

@albireox
Copy link
Author

albireox commented Feb 8, 2025

I think any of the options in that comment would work. My personal preference would be a new variable, so something like UV_PROJECT_USE_ACTIVE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Settings and such enhancement New feature or improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants