diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index 340f82eec96..2a1a870ae32 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -575,7 +575,11 @@ pub struct PipCompileArgs { /// In universal mode, the current Python version (or user-provided `--python-version`) will be /// treated as a lower bound. For example, `--universal --python-version 3.7` would produce a /// universal resolution for Python 3.7 and later. - #[arg(long, overrides_with("no_universal"))] + #[arg( + long, + overrides_with("no_universal"), + conflicts_with("python_platform") + )] pub universal: bool, #[arg(long, overrides_with("universal"), hide = true)]