Skip to content

Fixes invalid url concatenation #240

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

Merged
merged 1 commit into from
Jun 20, 2019
Merged

Fixes invalid url concatenation #240

merged 1 commit into from
Jun 20, 2019

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Jun 20, 2019

The url concatenation was incorrect: it was completely stripping the path from the registry.

This diff takes a simpler approach which should work in both cases we were interested in.

I've also implemented a few tests that should cover the problems we encountered. They're interesting in that they're actually unit tests, rather than the integration tests we typically use. I think it makes sense in the context of testing the npmHttpUtils module, which is well-contained.

Fixes #238

@arcanis arcanis merged commit e84af32 into master Jun 20, 2019
@arcanis arcanis deleted the path-generation branch June 20, 2019 13:37
@xc2
Copy link

xc2 commented Jun 21, 2019

The private registry used in my team is with tarball url like this: <registry>/@babel/code-frame/download/@babel/code-frame-7.0.0.tgz

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] Registries with non-conventional tarball paths
2 participants