Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): use CliNodeResolver::resolve() for managed node_modules #23902

Merged
merged 4 commits into from
May 21, 2024

Conversation

nayeemrmn
Copy link
Collaborator

@nayeemrmn nayeemrmn commented May 20, 2024

Fixes #23895.
Fixes #23878.

This was a regression in #23764 caused by removing this code block: https://github.com/denoland/deno/pull/23764/files#diff-5edc220fbc0fc6aebb443d977875a955bcb1304beb56fefbebae42925824d49aL1111-L1121. I supposed this was handled by the CliGraphResolver. This patch ensures CliNodeResolver::node_resolve() is called in CliGraphResolver::resolve(). Maybe this was broken in deno check as well but no errors are surfaced because it produces a bunch of any types. Not sure how to test this.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once a test case is added.

Comment on lines +7217 to +7220
assert_eq!(
json!(diagnostics.all()),
json!([
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that this fails on main

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nayeemrmn nayeemrmn merged commit a5111fb into denoland:main May 21, 2024
17 checks passed
@nayeemrmn nayeemrmn deleted the node-resolve-cli-graph-resolver branch May 21, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants