diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-12 21:30:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 21:30:44 -0500 |
commit | 8972ebc9cc33ef1df21c899c35006ea712f7f91f (patch) | |
tree | 396e0aaf422b61e1a0c4c7a09a7bf84a84e7f459 /cli/tools/run.rs | |
parent | 8c026dab92b20fea44bc66f84db48b885c7264d1 (diff) |
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
Diffstat (limited to 'cli/tools/run.rs')
-rw-r--r-- | cli/tools/run.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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() { |