Skip to content

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
@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

4 participants