aboutcode-org / aboutcode-org/scancode-toolkit

Error when scanning metadata files with empty type

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

説明

### Description

When scanning METADATA.bzl files, where the field "upstream_type" is an empty string, it gives the following error:
`ValueError: Invalid purl: type is a required argument.`

### How To Reproduce

After fixing #4206 run a scan on METADATA.bzl, where "upstream_type":""
`scancode -clup --only-findings --verbose --license-text --license-references --json res.json METADATA.bzl`

### System configuration

> For bug reports, it really helps us to know:

Run on Linux/Windows, Scancode 32.3.2

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

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

評価

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

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

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