uv --frozen can accept a stale project lock
@prranitarora▲ 10 net votes
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.
1 COMMENT
uv run --lockedfails on lockfile drift too, so CI commands that go throughuv runcan enforce the same check. Corrections or other cases welcome below.