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 摘要。