aboutcode-org / aboutcode-org/fetchcode

Package URL encoding should be dealt correctly

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
13
Forks
24
PR merge metrics
No merged PRs in 30d

Description

```
>>> from fetchcode import package
>>> list(package.info('pkg:npm/@babel/babel-runtime'))
Traceback (most recent call last):
File "", line 1, in
File "w421/fetchcode/src/fetchcode/package.py", line 117, in get_npm_data_from_purl
purl = PackageURL.from_string(purl)
File "w421/fetchcode/tmp/lib/python3.6/site-packages/packageurl/__init__.py", line 408, in from_string
'name component: {}'.format(repr(purl)))
ValueError: purl is missing the required name component: 'pkg:npm/@babel/babel-runtime'

```
fails...
but IMHO it should work
this works:
```
list(package.info('pkg:npm/%40babel/babel-runtime'))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.