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): compare versions directly to decide whether to create a child node_modules dir for a workspace member #26001

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

nathanwhit
Copy link
Member

Fixes #25861.

Previously we were attempting to match the version requirement against the version already present in node_modules root, and if they didn't match we would create a node_modules dir in the workspace member's directory with the dependency.

Aside from the fact that this caused the panic, on second thought it just doesn't make sense in general. We shouldn't be semver matching, as resolution has already occurred and decided what package versions are required. Instead, we can just compare the versions directly.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, good catch

@nathanwhit nathanwhit merged commit cb74975 into main Oct 2, 2024
17 checks passed
@nathanwhit nathanwhit deleted the tag-workspace-panic branch October 2, 2024 22:11
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.

Deno install - Panic on Windows
3 participants