uv/docs/concepts
Charlie Marsh 2651aee33f
Enforce lockfile schema versions (#8509)
## Summary

Historically, we haven't enforced schema versions. This PR adds a
versioning policy such that, if a uv version writes schema v2, then...

- It will always reject lockfiles with schema v3 or later.
- It _may_ reject lockfiles with schema v1, but can also choose to read
them, if possible.

(For example, the change we proposed to rename `dev-dependencies` to
`dependency-groups` would've been backwards-compatible: newer versions
of uv could still read lockfiles that used the `dev-dependencies` field
name, but older versions should reject lockfiles that use the
`dependency-groups` field name.)

Closes https://github.com/astral-sh/uv/issues/8465.
2024-10-24 12:23:56 -04:00
..
cache.md Fix cache-keys typo in tags = true (#8422) 2024-10-21 17:35:22 +00:00
dependencies.md Improve documentation of manually adding branch, rev, and tag (#8497) 2024-10-23 16:12:01 +00:00
index.md Update documentation sections (#5452) 2024-07-25 12:37:22 -05:00
projects.md Allow dependency metadata entries for direct URL requirements (#7846) 2024-10-22 22:01:23 -04:00
python-versions.md Avoid selecting prerelease Python installations without opt-in (#7300) 2024-09-11 15:49:33 -05:00
resolution.md Enforce lockfile schema versions (#8509) 2024-10-24 12:23:56 -04:00
tools.md docs: add missing console highlights (#6900) 2024-08-31 19:04:19 -04:00
workspaces.md Update workspace documentation to remove legacy virtual projects (#6720) 2024-08-27 17:31:12 -04:00