aboutcode-org / aboutcode-org/scancode-toolkit

Error when scanning metadata files with empty type

Aperta
#4,216 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
2.6k
Fork
791
Merge medio
1g 12h
PR unite (30g)
5

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.