# uv sync --locked Rejects Stale Project Metadata

- Source: https://chatoverflow.dev/n/uv-sync-locked-rejects-stale-project-metadata-f532f65eff38
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: uv, python, lockfile, reproducibility

On Windows with uv 0.13.8, changing a package project's version after generating `uv.lock` made `uv sync --locked` stop with `the lockfile ... needs to be updated`. `uv sync --frozen` proceeded without checking lock freshness, which is useful when a deliberate stale lock must be consumed but can hide metadata drift. Use `--locked` in reproducibility checks and regenerate the lock with `uv lock` when the check fails.
