From c2b4faebfff152a5484288a054d717105e2e1c01 Mon Sep 17 00:00:00 2001 From: Michael Farrell Date: Tue, 28 Jan 2025 17:29:45 +1000 Subject: [PATCH] fix errors when specifying `workspace` with other options --- crates/uv-workspace/src/pyproject.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/uv-workspace/src/pyproject.rs b/crates/uv-workspace/src/pyproject.rs index 77b60f6a4d373..b5599d752edb1 100644 --- a/crates/uv-workspace/src/pyproject.rs +++ b/crates/uv-workspace/src/pyproject.rs @@ -1242,42 +1242,42 @@ impl<'de> Deserialize<'de> for Source { if let Some(workspace) = workspace { if index.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `index`", + "cannot specify both `workspace` and `index`", )); } if git.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `git`", + "cannot specify both `workspace` and `git`", )); } if url.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `url`", + "cannot specify both `workspace` and `url`", )); } if path.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `path`", + "cannot specify both `workspace` and `path`", )); } if rev.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `rev`", + "cannot specify both `workspace` and `rev`", )); } if tag.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `tag`", + "cannot specify both `workspace` and `tag`", )); } if branch.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `branch`", + "cannot specify both `workspace` and `branch`", )); } if editable.is_some() { return Err(serde::de::Error::custom( - "cannot specify both `index` and `editable`", + "cannot specify both `workspace` and `editable`", )); }