From 62e0ee7f672726cf33e908ab297e61908c496966 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:03:52 +0000 Subject: [PATCH] Fix grammar in missing platform marker error message (#9240) `s/a platform markers/a platform marker/` --- crates/uv-workspace/src/pyproject.rs | 2 +- crates/uv/tests/it/lock.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv-workspace/src/pyproject.rs b/crates/uv-workspace/src/pyproject.rs index d76f3b0e9..2483bc3b3 100644 --- a/crates/uv-workspace/src/pyproject.rs +++ b/crates/uv-workspace/src/pyproject.rs @@ -1278,7 +1278,7 @@ pub enum SourceError { NonUtf8Path(PathBuf), #[error("Source markers must be disjoint, but the following markers overlap: `{0}` and `{1}`.\n\n{hint}{colon} replace `{1}` with `{2}`.", hint = "hint".bold().cyan(), colon = ":".bold())] OverlappingMarkers(String, String, String), - #[error("When multiple sources are provided, each source must include a platform markers (e.g., `marker = \"sys_platform == 'linux'\"`)")] + #[error("When multiple sources are provided, each source must include a platform marker (e.g., `marker = \"sys_platform == 'linux'\"`)")] MissingMarkers, #[error("Must provide at least one source")] EmptySources, diff --git a/crates/uv/tests/it/lock.rs b/crates/uv/tests/it/lock.rs index e0079929f..9a26b53ed 100644 --- a/crates/uv/tests/it/lock.rs +++ b/crates/uv/tests/it/lock.rs @@ -18068,7 +18068,7 @@ fn lock_multiple_sources_no_marker() -> Result<()> { | 9 | iniconfig = [ | ^ - When multiple sources are provided, each source must include a platform markers (e.g., `marker = "sys_platform == 'linux'"`) + When multiple sources are provided, each source must include a platform marker (e.g., `marker = "sys_platform == 'linux'"`) "###); Ok(())