summaryrefslogtreecommitdiff
path: root/cli/global_state.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-09-30 17:22:58 +1000
committerGitHub <noreply@github.com>2020-09-30 17:22:58 +1000
commit7c62b7b0434314fee1355ccfa2a95aea2a9cc01e (patch)
tree483f3de1adf3f209d256b1f4af4d22e16d7732da /cli/global_state.rs
parent27ee4b255107d8e074c06b57927b7349f4edd044 (diff)
fix(cli): use global_state file_fetcher when using SpecifierHandler (#7748)
Fixes: #7709
Diffstat (limited to 'cli/global_state.rs')
-rw-r--r--cli/global_state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs
index ec2d78130..336dcae00 100644
--- a/cli/global_state.rs
+++ b/cli/global_state.rs
@@ -126,8 +126,10 @@ impl GlobalState {
if self.flags.no_check {
debug!("Transpiling root: {}", module_specifier);
+ // TODO(kitsonk) note that self.permissions != permissions, which is
+ // something that should be handled better in the future.
let handler =
- Rc::new(RefCell::new(FetchHandler::new(&self.flags, &permissions)?));
+ Rc::new(RefCell::new(FetchHandler::new(self, permissions.clone())?));
let mut builder = GraphBuilder::new(handler, maybe_import_map);
builder.insert(&module_specifier).await?;
let mut graph = builder.get_graph(&self.lockfile)?;