Skip to content

fix: fix usage of path of custom registry - #8737

Merged
owlstronaut merged 1 commit into
npm:latestfrom
flj2mu2:8736_fix-handling-of-repository-path-name-collision
Nov 19, 2025
Merged

fix: fix usage of path of custom registry#8737
owlstronaut merged 1 commit into
npm:latestfrom
flj2mu2:8736_fix-handling-of-repository-path-name-collision

Conversation

@flj2mu2

Copy link
Copy Markdown
Contributor

Properly handle the resolution of a path via a custom registry with a path element in the URL, when the path element is a prefix of a package name.

When a custom registry with a path element is used (e.g. http://localhost:3080/npm/), then the resolution of download URLs for packages starting with the path element (in this case npm, so e.g. npm-run-path) will fail as the path element gets omitted.

References

Fixes#8736

Properly handle the resolution of a path via a custom registry with a path element in the URL, when the path element is a prefix of a package name.
When a custom registry with a path element is used (e.g. http://localhost:3080/npm/), then the resolution of download URLs for packages starting with the path element (in this case `npm`, so e.g. `npm-run-path`) will fail as the path element gets omitted.
## References
Fixesnpm#8736
@flj2mu2
flj2mu2 requested a review from a team as a code ownerNovember 17, 2025 10:27
@owlstronautowlstronaut changed the title fix(arborist): fix usage of path of custom registryfix: fix usage of path of custom registryNov 19, 2025

@owlstronautowlstronaut left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you for the contribution!

@owlstronaut
owlstronaut merged commit 3225fa3 into npm:latestNov 19, 2025
17 checks passed
@github-actionsgithub-actionsBot mentioned this pull request Nov 19, 2025
@github-actionsgithub-actionsBot mentioned this pull request May 27, 2026
Sign up for freeto 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.

[BUG] Custom Registry Path Omitted when Package Name Starts with Name of Path

2 participants

@flj2mu2@owlstronaut