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(install): surface package.json dependency errors #26023

Merged
merged 5 commits into from
Oct 4, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Oct 3, 2024

No description provided.

}

Ok(())
}

async fn npm_install_after_modification(
flags: Arc<Flags>,
// todo(dsherret): why is this dependency being passed here?
Copy link
Member

@nathanwhit nathanwhit Oct 3, 2024

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

Copy link
Member Author

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.

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

@dsherret dsherret enabled auto-merge (squash) October 4, 2024 07:16
@dsherret dsherret merged commit edac916 into denoland:main Oct 4, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants