aboutcode-org / scancode-toolkit

:mag: ScanCode detects licenses, copyrights, dependencies by "scanning code" ... to discover and inventory open source and third-party packages used in your code. Sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase, the Google Summer of Code, Azure credits, nexB and others generous sponsors!
https://github.com/aboutcode-org/scancode-toolkit/releases/
2.11k stars 546 forks source link

Output from older ScanCode versions does not play nicely with VirtualCodebase #1028

Closed johnmhoran closed 5 years ago

johnmhoran commented 6 years ago

In a DeltaCode test of VirtualCodebase, using a scan generated with ScanCode 2.2.1.post73.a9083191a results in a series of KeyErrors, e.g.,

        # Resource list is assumed to be in top-down order
        for res in resources:
            name, path, is_file, file_data = res_data(res)
            parent_path = parent_directory(path).rstrip('/')
>           parent = parent_by_path[parent_path]
E           KeyError: u'1_file_moved_new'

lib\site-packages\scancode\resource.py:1154: KeyError
pombredanne commented 6 years ago

@johnmhoran Thanks but I am not sure we would ever support scans from a 2.2.1 version with this. Also may be this is a ticket that would best live in DeltaCode than here?

pombredanne commented 5 years ago

I am closing this as wontfix. We will not support older 2.2.1x scan formats. Feel free to reopen if you think this deserves to be fixed