Skip to content

fix(arborist): maintain protocol of replaced registryURL #8330

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

Closed
wants to merge 2 commits into from

Conversation

alexsch01
Copy link
Contributor

fixes #8324

@wraithgar
Copy link
Member

We'll definitely need a test for this

@alexsch01
Copy link
Contributor Author

We'll definitely need a test for this

I modified the existing test

@wraithgar
Copy link
Member

The code change looks good. However, I am hesitant to support http:// for anything except localhost. I am also hesitant to try to add what is almost certainly a larger task than it seems in trying to determine if the hostname is some analog for localhost.

I'd welcome other folks' thoughts on this.

@alexsch01
Copy link
Contributor Author

Not a big deal to me (I only found this when debugging another issue report)

@alexsch01 alexsch01 closed this May 28, 2025
@alexsch01 alexsch01 deleted the maintain-protocol branch May 28, 2025 10:52
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.

[BUG] fix from https://github.com/npm/cli/pull/8222 doesn't maintain scheme of replaced repo URL
2 participants