Skip to content

Force uv not to download #1822

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

Merged
merged 1 commit into from
Apr 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/modules/languages/python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ in
env = (lib.optionalAttrs cfg.uv.enable {
# ummmmm how does this work? Can I even know the path to the devenv/state at this point?
UV_PROJECT_ENVIRONMENT = "${config.env.DEVENV_STATE}/venv";
# Force uv not to download a Python binary when the version in pyproject.toml does not match the one installed by devenv
UV_PYTHON_DOWNLOADS = "never";
}) // (lib.optionalAttrs cfg.poetry.enable {
# Make poetry use DEVENV_ROOT/.venv
POETRY_VIRTUALENVS_IN_PROJECT = "true";
Expand Down