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(@schematics/update): fix update on local packages #13066

Closed
wants to merge 2 commits into from
Closed

fix(@schematics/update): fix update on local packages #13066

wants to merge 2 commits into from

Conversation

alan-agius4
Copy link
Collaborator

pacote requires the @version to determine if the package is local, git, http or in the npm repo.

Fixes #13059

pacote requires the `@version` to determine if the package is local, git, http or in the npm repo.

Fixes #13059
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Nov 27, 2018
// 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)),
Copy link
Collaborator Author

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.

Copy link
Member

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)),
Copy link
Member

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.

@alan-agius4
Copy link
Collaborator Author

Closing for now

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng update fails when using local library
3 participants