Skip to content

Conversation

@jamesbraza
Copy link
Collaborator

https://github.com/astral-sh/uv/releases/tag/0.10.0:

Previously, uv venv would prompt for confirmation before removing an existing virtual environment in interactive contexts, and remove it without confirmation in non-interactive contexts. Now, uv venv requires the --clear flag to remove an existing virtual environment. A warning for this change was added in uv 0.8.

You can opt out of this behavior by passing the --clear flag or setting UV_VENV_CLEAR=1.

@jamesbraza jamesbraza self-assigned this Feb 5, 2026
@jamesbraza jamesbraza added the bug Something isn't working label Feb 5, 2026
Copilot AI review requested due to automatic review settings February 5, 2026 22:30
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 5, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a breaking change introduced in uv 0.10.0, where uv venv now requires an explicit --clear flag (or UV_VENV_CLEAR=1 environment variable) to remove existing virtual environments, rather than doing so automatically. The change adds the UV_VENV_CLEAR: 1 environment variable to the lint job in the GitHub Actions workflow to work around issue #174 in the hynek/build-and-inspect-python-package repository.

Changes:

  • Added UV_VENV_CLEAR: 1 environment variable to the lint job in the tests workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dosubot dosubot bot added the enhancement New feature or request label Feb 5, 2026
@jamesbraza jamesbraza merged commit 317d574 into main Feb 5, 2026
4 of 5 checks passed
@jamesbraza jamesbraza deleted the newer-uv branch February 5, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants