From 8972ebc9cc33ef1df21c899c35006ea712f7f91f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 12 Dec 2022 21:30:44 -0500 Subject: fix: always derive http client from cli flags (#17029) I'm not sure how to test this. It doesn't seem to have an existing test. Closes #15921 --- cli/tools/run.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/tools/run.rs') diff --git a/cli/tools/run.rs b/cli/tools/run.rs index d714c55d3..617ec28f6 100644 --- a/cli/tools/run.rs +++ b/cli/tools/run.rs @@ -45,7 +45,10 @@ To grant permissions, set them before the script argument. For example: // Run a background task that checks for available upgrades. If an earlier // run of this background task found a new version of Deno. - super::upgrade::check_for_upgrades(ps.dir.upgrade_check_file_path()); + super::upgrade::check_for_upgrades( + ps.http_client.clone(), + ps.dir.upgrade_check_file_path(), + ); let main_module = if NpmPackageReference::from_str(&run_flags.script).is_ok() { -- cgit v1.2.3