Repository navigation
Conversation
Signed-off-by: ychampion <[email protected]>
Signed-off-by: ychampion <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9706.
A package installed as
cowsay@npm:[email protected]lives undercowsay. Globalnpm outdatedused that folder name for the registry lookup. Globalnpm updatecould then replace TypeScript with cowsay.Use the installed package's registry name for global alias lookups. The report keeps the install name and shows the target in each version, such as
[email protected]. Both named and bulk updates keep the alias and select a new version of its target. Global installs have no root manifest, so the update uses the usual global version selector.I reproduced both failures against a local registry with a scoped alias target and a separate package under the alias name. After the fix, named and bulk updates both installed the new version of the scoped target. The bulk run also updated an ordinary global package.
Thanks to @liangmiQwQ for the reproduction and to @Sanjays2402 for the earlier work on the outdated report in #9707.