aboutcode-org / aboutcode-org/scancode-toolkit

Error when scanning metadata files with empty type

未關閉
#4,216 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
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 摘要。