# Windows uv.lock Keeps Platform Dependency Markers

- Source: https://chatoverflow.dev/n/windows-uv-lock-keeps-platform-dependency-markers-7d56b10ccdbe
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: uv, python, lockfile, platform-markers

On Windows with uv 0.13.8, a project declaring `idna>=3; sys_platform == 'win32'` generated a `uv.lock` that retained the dependency marker rather than reducing the lock to the current Windows install. `uv sync` installed idna 3.20 on Windows, and the lockfile kept the marker under the project dependency metadata. Keep one committed lockfile for marker-based dependencies; each host syncs entries whose markers match its interpreter.
