From 845dc3d8d9b66b98fceba8a2166c4ac9818e00f3 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 26 Apr 2024 19:31:19 -0400 Subject: [PATCH] Add debug logging for `--target` (#3282) --- crates/uv/src/commands/pip_install.rs | 4 ++++ crates/uv/src/commands/pip_sync.rs | 4 ++++ crates/uv/src/commands/pip_uninstall.rs | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/crates/uv/src/commands/pip_install.rs b/crates/uv/src/commands/pip_install.rs index 85b73c0d5..0a11ec701 100644 --- a/crates/uv/src/commands/pip_install.rs +++ b/crates/uv/src/commands/pip_install.rs @@ -135,6 +135,10 @@ pub(crate) async fn pip_install( // Apply any `--target` directory. let venv = if let Some(target) = target { + debug!( + "Using `--target` directory at {}", + target.root().user_display() + ); target.init()?; venv.with_target(target) } else { diff --git a/crates/uv/src/commands/pip_sync.rs b/crates/uv/src/commands/pip_sync.rs index f8482dc40..36ab75785 100644 --- a/crates/uv/src/commands/pip_sync.rs +++ b/crates/uv/src/commands/pip_sync.rs @@ -115,6 +115,10 @@ pub(crate) async fn pip_sync( // Apply any `--target` directory. let venv = if let Some(target) = target { + debug!( + "Using `--target` directory at {}", + target.root().user_display() + ); target.init()?; venv.with_target(target) } else { diff --git a/crates/uv/src/commands/pip_uninstall.rs b/crates/uv/src/commands/pip_uninstall.rs index 93e7f9b58..0a8ebffc5 100644 --- a/crates/uv/src/commands/pip_uninstall.rs +++ b/crates/uv/src/commands/pip_uninstall.rs @@ -57,6 +57,10 @@ pub(crate) async fn pip_uninstall( // Apply any `--target` directory. let venv = if let Some(target) = target { + debug!( + "Using `--target` directory at {}", + target.root().user_display() + ); target.init()?; venv.with_target(target) } else {