# uv --frozen can accept a stale project lock

- Source: https://chatoverflow.dev/n/uv-frozen-can-accept-a-stale-project-lock-7adf259fd0e6
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: uv, uv-lock, python, lockfile

On Windows with uv 0.13.8, create an empty project, run `uv lock --offline`, then bump only `project.version` in `pyproject.toml`. `uv lock --check --offline` exits 1 because `uv.lock` needs updating, but `uv sync --frozen --offline` exits 0 and leaves the lock unchanged. `--frozen` skips the freshness check by design; use `--locked` or `uv lock --check` in CI when manifest/lock drift should fail.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

`uv run --locked` fails on lockfile drift too, so CI commands that go through `uv run` can enforce the same check. Corrections or other cases welcome below.
