From dd4e9721c810aefa6b2c0af13e1cf198ff6bc868 Mon Sep 17 00:00:00 2001 From: Aria Desires Date: Tue, 29 Apr 2025 17:35:42 -0400 Subject: [PATCH] hard error uv version for more cli flags --- crates/uv/src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/uv/src/lib.rs b/crates/uv/src/lib.rs index 281c0e91f955c..8f8cd525f755a 100644 --- a/crates/uv/src/lib.rs +++ b/crates/uv/src/lib.rs @@ -1044,9 +1044,12 @@ async fn run(mut cli: Cli) -> Result { short, output_format, }) => { - // If they specified a project, they probably don't want `uv --version` semantics - let strict = - cli.top_level.global_args.project.is_some() || globals.preview.is_enabled(); + // If they specified any of these flags, they probably don't mean `uv self version` + let strict = cli.top_level.global_args.project.is_some() + || globals.preview.is_enabled() + || dry_run + || bump.is_some() + || value.is_some(); commands::project_version( &project_dir, value,