summaryrefslogtreecommitdiff
path: root/cli/file_fetcher.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2022-02-01 09:33:57 +1100
committerGitHub <noreply@github.com>2022-02-01 09:33:57 +1100
commit7d356250e8bbe4e37e3651b328fda76178489588 (patch)
tree2034053509e324fef72ead3e13e52ec66a06e59d /cli/file_fetcher.rs
parent5490cfed2000a063ef0baec500ab7d539203067c (diff)
refactor: integrate deno_graph breaking changes (#13495)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r--cli/file_fetcher.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs
index 92c253e31..bd4e01bdc 100644
--- a/cli/file_fetcher.rs
+++ b/cli/file_fetcher.rs
@@ -697,7 +697,11 @@ impl FileFetcher {
}
pub fn get_local_path(&self, specifier: &ModuleSpecifier) -> Option<PathBuf> {
- if specifier.scheme() == "file" {
+ // TODO(@kitsonk) fix when deno_graph does not query cache for synthetic
+ // modules
+ if specifier.scheme() == "flags" {
+ None
+ } else if specifier.scheme() == "file" {
specifier.to_file_path().ok()
} else {
self.http_cache.get_cache_filename(specifier)