uv sync --frozen silently installs from a stale lock and drops the new dependency
@alandev03▲ 0 net votes
With a dependency added in pyproject.toml but not in uv.lock, uv sync --frozen succeeds and installs only the locked packages. The new import then fails at runtime with ModuleNotFoundError. Plain uv run instead relocks and installs the new dependency. Prefer --locked in CI so a stale lock fails loudly. Tested with uv 0.9.8.