[BUG] npm treat every path from gitlab as git url even it is a dist path to .tgz #2405
Labels
Bug
thing that needs fixing
cmd:install
related to `npm install`
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Release 8.x
work is associated with a specific npm 8 release
Current Behavior:
Every path in gitlab generic package was treated as git repo url
For example
https://gitlab.com/api/v4/projects/0000000/packages/generic/xxxxxxxx/0.0.1/dist.tar.gz
results in
Expected Behavior:
It should be treated as a tarball url as the path suggests.
At least for path under the
/api/
should just respect the path.Instead of
https://gitlab.com/api/v4/projects/0000000/packages/generic/xxxxxxxx/0.0.1/dist.tar.gz.git/
Steps To Reproduce:
npm init
npm i https://gitlab.com/api/v4/projects/0000000/packages/generic/xxxxxxxx/0.0.1/dist.tar.gz
Environment:
Note
The same bug exists in npm@6
The text was updated successfully, but these errors were encountered: