aboutcode-org / aboutcode-org/scancode-toolkit

Incorrect purls reported for bundled code in package scan

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

説明

Package scan for `next-14.2.26` is correctly reported as `pkg:npm/next@14.2.26` . However, all the sub-packages (bundled code) are also reported as `pkg:npm/next@14.2.26` which may not be correct.

input: https://www.npmjs.com/package/next/v/14.2.26?activeTab=code

For instance,

```
{
"path": "code/next-14.2.26.tgz-extract/package/dist/compiled/@edge-runtime/primitives/fetch.js.text.js",
"type": "file",
"package_data": [],
"for_packages": [
"pkg:npm/next@14.2.26?uuid=44b2abd3-413c-432f-88e5-dc1cd843855b"
],
"scan_errors": []
},
```
The `for_packages` should be: `pkg:npm/@edge-runtime/primitives`

```
{
"path": "code/next-14.2.26.tgz-extract/package/dist/compiled/@ampproject/toolbox-optimizer/index.js",
"type": "file",
"package_data": [],
"for_packages": [
"pkg:npm/next@14.2.26?uuid=44b2abd3-413c-432f-88e5-dc1cd843855b"
],
"scan_errors": []
},
```
The `for_packages` should be: `pkg:npm/@ampproject/toolbox-optimizer`

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

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

評価

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

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

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