diff --git a/crates/uv/src/commands/project/mod.rs b/crates/uv/src/commands/project/mod.rs index 029875c4ba..49c40b8ed1 100644 --- a/crates/uv/src/commands/project/mod.rs +++ b/crates/uv/src/commands/project/mod.rs @@ -152,12 +152,12 @@ pub(crate) enum ProjectError { LockWorkspaceMismatch(PackageName), #[error( - "The lockfile at `uv.lock` uses an unsupported schema version (v{0}, but only v1 and v2 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`." + "The lockfile at `uv.lock` uses an unsupported schema version (v{0}, but only v1, v2, and v3 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`." )] UnsupportedLockVersion(u32), #[error( - "Failed to parse `uv.lock`, which uses an unsupported schema version (v{0}, but only v1 and v2 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`." + "Failed to parse `uv.lock`, which uses an unsupported schema version (v{0}, but only v1, v2, and v3 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`." )] UnparsableLockVersion(u32, #[source] toml::de::Error), diff --git a/crates/uv/tests/it/lock.rs b/crates/uv/tests/it/lock.rs index 11467b19cd..6e1b0d28dc 100644 --- a/crates/uv/tests/it/lock.rs +++ b/crates/uv/tests/it/lock.rs @@ -23382,7 +23382,7 @@ fn lock_unsupported_version() -> Result<()> { // Validate schema, invalid version. context.temp_dir.child("uv.lock").write_str( r#" - version = 3 + version = 4 requires-python = ">=3.12" [options] @@ -23416,13 +23416,13 @@ fn lock_unsupported_version() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: The lockfile at `uv.lock` uses an unsupported schema version (v3, but only v1 and v2 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`. + error: The lockfile at `uv.lock` uses an unsupported schema version (v4, but only v1, v2, and v3 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`. "); // Invalid schema (`iniconfig` is referenced, but missing), invalid version. context.temp_dir.child("uv.lock").write_str( r#" - version = 3 + version = 4 requires-python = ">=3.12" [options] @@ -23447,7 +23447,7 @@ fn lock_unsupported_version() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: Failed to parse `uv.lock`, which uses an unsupported schema version (v3, but only v1 and v2 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`. + error: Failed to parse `uv.lock`, which uses an unsupported schema version (v4, but only v1, v2, and v3 are supported). Downgrade to a compatible uv version, or remove the `uv.lock` prior to running `uv lock` or `uv sync`. Caused by: Dependency `iniconfig` has missing `source` field but has more than one matching package ");