aboutcode-org / aboutcode-org/scancode-toolkit

package scan requirement value confused

オープン
#2,753 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug dependencies package scan
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
5

説明

### Description
When trying to scan the project https://github.com/pallets/flask with latest scancode
The file is: https://github.com/pallets/flask/blob/main/examples/javascript/setup.cfg
It get the following result:
value of requirement in dependencies is confused, whether the key requirement means dependency version requirement?
```
"files": [
{
"path": "setup.cfg",
"type": "file",
"packages": [
{
"type": "pypi",
"namespace": null,
"name": null,
"version": null,
"qualifiers": {},
"subpath": null,
"primary_language": "Python",
"description": null,
"release_date": null,
"parties": [],
"keywords": [],
"homepage_url": null,
"download_url": null,
"size": null,
"sha1": null,
"md5": null,
"sha256": null,
"sha512": null,
"bug_tracking_url": null,
"code_view_url": null,
"vcs_url": null,
"copyright": null,
"license_expression": null,
"declared_license": null,
"notice_text": null,
"root_path": null,
"dependencies": [
{
"purl": "pkg:pypi/flask",
"requirement": "Flask",
"scope": "install",
"is_runtime": true,
"is_optional": false,
"is_resolved": false
},
{
"purl": "pkg:pypi/pytest",
"requirement": "pytest",
"scope": "install",
"is_runtime": true,
"is_optional": false,
"is_resolved": false
},
{
"purl": "pkg:pypi/blinker",
"requirement": "blinker",
"scope": "install",
"is_runtime": true,
"is_optional": false,
"is_resolved": false
}
],
"contains_source_code": null,
"source_packages": [],
"extra_data": {},
"purl": null,
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": null
}
],
"scan_errors": []
}
```

### How To Reproduce

scancode -p --json-pp - setup.cfg

### System configuration

* What OS are you running on? (Windows/MacOS/Linux)
Ubuntu18.04
* What version of scancode-toolkit was used to generate the scan file?
scancode-toolkit 30.1.0
* What installation method was used to install/run scancode? (pip/source download/other)
pip
* Python version
Python 3.7.10

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。