Skip to content

load_inventory pipeline does not work with SCIO JSON output #609

Description

@JonoYang

The load_inventory pipeline loads the JSON scan into a VirtualCodebase object, where the JSON scan data is mapped to a Codebase and Resource objects. VirtualCodebase requires that a root Resource be present in the scan in order for it to be created. When a Codebase is created from a scancode.io Project inputs, we strip the root from the paths of the Resources created, so the root Resource is not created. This is the main reason why the existing scan import code doesn't work.

A solution may be to have some functions that iterate through the JSON and create Packages and Resources as they appear in the scan and avoid using code that's specific to VirtualCodebase.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions