Skip to content
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

Package URL encoding should be dealt correctly #65

Open
pombredanne opened this issue Aug 16, 2021 · 0 comments
Open

Package URL encoding should be dealt correctly #65

pombredanne opened this issue Aug 16, 2021 · 0 comments

Comments

@pombredanne
Copy link
Member

>>> from fetchcode import package
>>> list(package.info('pkg:npm/@babel/babel-runtime'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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'))
pombredanne pushed a commit that referenced this issue May 10, 2022
Add documentation contribute page
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

No branches or pull requests

1 participant