Skip to content

Reinstall the project after a locked uv sync - #2457

Closed
fhgffy wants to merge 1 commit into
pypa:masterfrom
fhgffy:fix-locked-sync-reinstalls-project
Closed

fhgffy wants to merge 1 commit into
pypa:masterfrom
fhgffy:fix-locked-sync-reinstalls-project

Conversation

@fhgffy

@fhgffy fhgffy commented Oct 4, 2026

Copy link
Copy Markdown

Fixes #2372

A locked environment installs the project in editable mode and then runs uv pip sync. The sync removes anything the lockfile does not list, including that project.

The project is installed again after the sync. Dev mode still uses --editable.

Tests: pytest tests/env/test_locked_project_reinstall.py

uv pip sync removes the project when the lockfile does not list it. A locked environment with dev mode therefore lost the editable install. The project is installed again after the sync.
@cjames23

cjames23 commented Oct 4, 2026

Copy link
Copy Markdown
Member

@cjames23 cjames23 closed this Oct 4, 2026
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

Successfully merging this pull request may close these issues.

installer = "uv" with locked = true uninstalls the editable root project (dev-mode = true)

2 participants