summaryrefslogtreecommitdiff
path: root/cli/tools/registry/pm/cache_deps.rs
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-10-24 16:46:48 -0700
committerGitHub <noreply@github.com>2024-10-24 23:46:48 +0000
commit0060e74779e25eba4544ca540066f07a1c46d17b (patch)
tree6eaf29a3ec7ee91b62e58709acb91a128675b26b /cli/tools/registry/pm/cache_deps.rs
parente16230624747eccea7636b20b952df5899719336 (diff)
fix(install): don't cache json exports of JSR packages (for now) (#26530)
Temporary fix for #26509, so people don't get errors.
Diffstat (limited to 'cli/tools/registry/pm/cache_deps.rs')
-rw-r--r--cli/tools/registry/pm/cache_deps.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tools/registry/pm/cache_deps.rs b/cli/tools/registry/pm/cache_deps.rs
index 365622d11..9883deb1d 100644
--- a/cli/tools/registry/pm/cache_deps.rs
+++ b/cli/tools/registry/pm/cache_deps.rs
@@ -90,8 +90,13 @@ pub async fn cache_top_level_deps(
while let Some(info_future) = info_futures.next().await {
if let Some((specifier, info)) = info_future {
let exports = info.exports();
- for (k, _) in exports {
+ for (k, v) in exports {
if let Ok(spec) = specifier.join(k) {
+ if v.ends_with(".json") {
+ // TODO(nathanwhit): this should work, there's a bug with
+ // json roots in deno_graph. skip it for now
+ continue;
+ }
roots.push(spec);
}
}