-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Question
I'm trying to understand the difference in lock output between mine and a coworker's computer that clutters our VCS whenever we bump dependencies in our project.
When uv
locks and produces the uv.lock
file, there are two things my uv will do differently compared to my coworker:
- The top-level lockfile key
revision
is set to 1. - Every node describing an artifact from a PyPI doesn't include the
upload-time
key.
I'm on uv 0.7.8, running on Ubuntu LTS 24.04 x86_64. This seems to be the "normal" thing many of the boxes I'm working with produce.
My coworker will lock the same exact pyproject.toml
, but his will uniquely do the following:
- The top-level lockfile key
revision
is set to 2. - Every node describing an artifact from a PyPI includes the
upload-time
key.
He's running uv 0.7.2 (481d05d 2025-04-30) on MacOS's Darwin 23.2.0 arm64.
We have a project that's highly sensitive to dependency changes, and so we manually review the lockfile. For some reason, my coworker's commits generate a bunch of noise in the diff from having a seemingly later lockfile type despite being on an earlier version of uv
.
I'm struggling to find a description of the contents of a uv
lockfile such that I can perhaps figure out where these differences are coming from. Can anyone explain it to me?
Platform
Darwin 23.2.0 arm64
Version
uv 0.7.2 (481d05d 2025-04-30)