summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-12-12 21:30:44 -0500
committerGitHub <noreply@github.com>2022-12-12 21:30:44 -0500
commit8972ebc9cc33ef1df21c899c35006ea712f7f91f (patch)
tree396e0aaf422b61e1a0c4c7a09a7bf84a84e7f459 /cli/proc_state.rs
parent8c026dab92b20fea44bc66f84db48b885c7264d1 (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/proc_state.rs')
-rw-r--r--cli/proc_state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index a238bd5d2..13c8d2414 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -78,6 +78,7 @@ pub struct ProcState(Arc<Inner>);
pub struct Inner {
pub dir: DenoDir,
pub file_fetcher: FileFetcher,
+ pub http_client: HttpClient,
pub options: Arc<CliOptions>,
pub emit_cache: EmitCache,
pub emit_options: deno_ast::EmitOptions,
@@ -226,7 +227,7 @@ impl ProcState {
let api = RealNpmRegistryApi::new(
registry_url,
npm_cache.clone(),
- http_client,
+ http_client.clone(),
progress_bar.clone(),
);
let maybe_lockfile = lockfile.as_ref().cloned();
@@ -256,6 +257,7 @@ impl ProcState {
.finish(),
emit_options,
file_fetcher,
+ http_client,
graph_data: Default::default(),
lockfile,
maybe_import_map,