Skip to content

Unwanted lock file updates #14485

@melMass

Description

@melMass

Summary

In a workspace where I use torch nightly, whenever I interact with uv (like uv add) it updates torch and the lock file to latest nightly... I can't find how to avoid the lock file from updating it as I want to manually issue -U

Full repro here: https://github.com/melMass/reproduction/tree/python/uv-add-updates-lock

repro-demo.mp4

Platform

Windows 11 x64

Version

uv 0.7.9 (13a86a2 2025-05-30)

Python version

3.11.11

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions