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

pnpm import does not preserve locked versions from package-lock.json #7298

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tris203
Copy link
Contributor

@tris203 tris203 commented Nov 10, 2023

This is a failing test to demonstrate issue #7287

@tris203
Copy link
Contributor Author

tris203 commented Nov 11, 2023

I have taken a look at this and we correctly pull the versions out of the shrinkwrap/package-lock file, but when they are passed into recursive() in opts.prefferedVersions, they are no longer associated with the specific dependency.

Then I assume because the high version meets the criteria (^1.x.x) the higher version is selected as matching.

This can be changed but would require some change in the data structures to keep the version extracted from the package-lock.json associated with the correct packages.

Want to get @zkochan thoughts before I look into it too much more

@tris203
Copy link
Contributor Author

tris203 commented Apr 23, 2024

updated to work with the new v9 format lockfiles, still an issue

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.

None yet

1 participant