aboutcode-org / aboutcode-org/fetchcode

Package URL encoding should be dealt correctly

未關閉
#65 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
HTML
星號
13
分支
24
PR 合併指標
30 天內沒有已合併 PR

描述

```
>>> 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'))
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。