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

Set --system by default when not using a virtual environment #106

Open
techman83 opened this issue Dec 1, 2024 · 0 comments
Open

Set --system by default when not using a virtual environment #106

techman83 opened this issue Dec 1, 2024 · 0 comments

Comments

@techman83
Copy link

techman83 commented Dec 1, 2024

Given the description of this option, and this being a CI tool, getting workflow errors is an unexpected out of the box experience.

WARNING: UV_SYSTEM_PYTHON=true is intended for use in continuous integration (CI) or containerized environments and should be used with caution, as modifying the system Python can lead to unexpected behavior.

Example error

error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment`

I think it's probably quite sensible to export UV_SYSTEM_PYTHON=true if not passing the uv-venv input, and it would more closely match the experience of pip when using actions/setup-python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant