-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(install): surface package.json dependency errors #26023
fix(install): surface package.json dependency errors #26023
Conversation
cli/tools/registry/pm.rs
Outdated
} | ||
|
||
Ok(()) | ||
} | ||
|
||
async fn npm_install_after_modification( | ||
flags: Arc<Flags>, | ||
// todo(dsherret): why is this dependency being passed here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, that was me.
The reason is because we create our own JsrFetchResolver
in add
from deps_file_fetcher
, and we to reuse that file fetcher in cache_top_level_deps
.
If we create a new JsrFetchResolver
in cache_top_level_deps
instead of passing our existing one, it redownloads meta.json files (and logs again), since it has a new file fetcher.
It's very possible there's a cleaner way to fix that, though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. Thanks! I'll update this comment tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.