From e0b4369ee437d8fea702a5b89564b09859c24ace Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 21 Jan 2026 18:11:02 -0600 Subject: [PATCH] Improve warnings for `--system` and `--no-system` in `uv venv` (#17647) See #17641 Co-authored-by: Claude --- crates/uv/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv/src/lib.rs b/crates/uv/src/lib.rs index 4a37963ef..b2291b9a9 100644 --- a/crates/uv/src/lib.rs +++ b/crates/uv/src/lib.rs @@ -1180,13 +1180,13 @@ async fn run(mut cli: Cli) -> Result { if args.no_system { warn_user_once!( - "The `--no-system` flag has no effect, a system Python interpreter is always used in `uv venv`" + "The `--no-system` flag has no effect, `uv venv` always ignores virtual environments when finding a Python interpreter; did you mean `--managed-python`?" ); } if args.system { warn_user_once!( - "The `--system` flag has no effect, a system Python interpreter is always used in `uv venv`" + "The `--system` flag has no effect, `uv venv` always ignores virtual environments when finding a Python interpreter; did you mean `--no-managed-python`?" ); }