Skip to content

uv lock --upgrade --dry-run giving "Lockfile changes detected" despite no changes #16839

@shenanigansd

Description

@shenanigansd

Summary

Running uv lock --upgrade --dry-run is showing "Lockfile changes detected", but running without the --dry-run flag makes no changes to the lockfile.

@shenanigansd ➜ /workspaces/core (main) $ uv lock --upgrade --dry-run
Resolved 156 packages in 7.28s
Lockfile changes detected
@shenanigansd ➜ /workspaces/core (main) $ uv lock --upgrade 
Resolved 156 packages in 295ms
@shenanigansd ➜ /workspaces/core (main) $ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
@shenanigansd ➜ /workspaces/core (main) $ 

Dry run logs with -vvv: https://gist.github.com/shenanigansd/786852dc4cbd8f549ad7f8387edab568

Platform

Linux 6.8.0-1030-azure x86_64 GNU/Linux

Version

uv 0.9.11

Python version

Python 3.14.0

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