Skip to content

Error when scanning metadata files with empty type #4216

Description

@vasily-pozdnyakov

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions