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://aboutcode.org/scancode/
2.15k stars 553 forks source link

Pickling automatons for ahocode. #3490

Open 35C4n0r opened 1 year ago

35C4n0r commented 1 year ago

I wanted to run the SCTK tests for the ahocode library. To do this would I need to have the pickle for the automaton? If yes, what's the procedure to prepare this pickle?

@pombredanne @AyanSinhaMahapatra @JonoYang .

pombredanne commented 1 year ago

that's going to be mostly the same as what we have today in licensedcode/cache.py We pickle the whole LicenseCache object that contains a pickable pyahocorasick object