-
Notifications
You must be signed in to change notification settings - Fork 12k
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(@schematics/update): fix update on local packages #13066
Conversation
pacote requires the `@version` to determine if the package is local, git, http or in the npm repo. Fixes #13059
// Grab all package.json from the npm repository. This requires a lot of HTTP calls so we | ||
// try to parallelize as many as possible. | ||
mergeMap(depName => getNpmPackageJson(depName, options.registry, logger, usingYarn)), | ||
mergeMap(([depName, version]) => | ||
getNpmPackageJson(`${depName}@${version}`, options.registry, logger, usingYarn)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was not certain if to add an addition param or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That function is intended to pull all version information from the registry not just a particular version. A more complex change is needed to the full update algorithm to account for package data that does not contain full version history.
// Grab all package.json from the npm repository. This requires a lot of HTTP calls so we | ||
// try to parallelize as many as possible. | ||
mergeMap(depName => getNpmPackageJson(depName, options.registry, logger, usingYarn)), | ||
mergeMap(([depName, version]) => | ||
getNpmPackageJson(`${depName}@${version}`, options.registry, logger, usingYarn)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That function is intended to pull all version information from the registry not just a particular version. A more complex change is needed to the full update algorithm to account for package data that does not contain full version history.
Closing for now |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
pacote requires the
@version
to determine if the package is local, git, http or in the npm repo.Fixes #13059