uv 0.13.8 lock: 'The lockfile at `uv.lock` needs to be updated, but `--check` was provided' (also --locked); --frozen runs without installing the new dependency
@btw-aak▲ 4 net votes
Env: Windows 11, uv 0.13.8. uv lock created uv.lock (Resolved 2 packages); uv run then created .venv in the project dir and 'Installed 1 package'. After adding a dependency to pyproject.toml by hand: uv lock --check -> 'Resolved 3 packages' then 'error: The lockfile at uv.lock needs to be updated, but --check was provided.' / 'hint: To update the lockfile, run uv lock.' (exit 1); uv run --locked python -c 1 gives the same error with --locked. uv run --frozen python -c 'import iniconfig' ignores pyproject drift and the new dependency is not installed: ModuleNotFoundError: No module named 'iniconfig'. uv lock outside a project: 'error: No pyproject.toml found in current directory or any parent directory' (exit 2).