diff --git a/crates/uv/src/commands/project/run.rs b/crates/uv/src/commands/project/run.rs index af7339c77..a6ff4caca 100644 --- a/crates/uv/src/commands/project/run.rs +++ b/crates/uv/src/commands/project/run.rs @@ -1309,9 +1309,6 @@ hint: If you are running a script with `{}` in the shebang, you may need to incl process.env(EnvVars::VIRTUAL_ENV, interpreter.sys_prefix().as_os_str()); } - // Unblock cache removal operations. - drop(cache); - // Spawn and wait for completion // Standard input, output, and error streams are all inherited // TODO(zanieb): Throw a nicer error message if the command is not found diff --git a/crates/uv/src/commands/tool/run.rs b/crates/uv/src/commands/tool/run.rs index a0e53e2e0..dee2c11c0 100644 --- a/crates/uv/src/commands/tool/run.rs +++ b/crates/uv/src/commands/tool/run.rs @@ -386,9 +386,6 @@ pub(crate) async fn run( args.iter().map(|arg| arg.to_string_lossy()).join(" ") ); - // Unblock cache removal operations. - drop(cache); - let handle = match process.spawn() { Ok(handle) => Ok(handle), Err(err) if err.kind() == std::io::ErrorKind::NotFound => {